English

Create the following table items. Column name Data type Size Constrain Itemno Number 3 Primary key Iname Varchar 15 Price Number 10,2 Quantity Number 3

Advertisements
Advertisements

Question

Create the following table items.

Column name Data type Size Constrain
Itemno Number 3 Primary key
Iname Varchar 15  
Price Number 10,2  
Quantity Number 3  
Code Writing
Advertisements

Solution

CREATE TABLE items (
    Itemno NUMERIC(3) PRIMARY KEY,
    Iname VARCHAR(15),
    Price NUMERIC(10, 2),
    Quantity NUMERIC(3)
);
shaalaa.com
  Is there an error in this question or solution?
Chapter 10: Structure Query Language - EXERCISE [Page 197]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 10 Structure Query Language
EXERCISE | Q 21. | Page 197
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×