English

Create the following table. Students Column name Data type Size Constraints Adno Integer 3 Primary key Name Varchar 20 Average Integer 3 Sex Char 1 Scode Integer 4

Advertisements
Advertisements

Question

Create the following table.

Students

Column name Data type Size Constraints
Adno Integer 3 Primary key
Name Varchar 20  
Average Integer 3  
Sex Char 1  
Scode Integer 4  
Code Writing
Advertisements

Solution

CREATE TABLE Students (
    Adno INTEGER(3) PRIMARY KEY,
    Name VARCHAR(20),
    Average INTEGER(3),
    Sex CHAR(1),
    Scode INTEGER(4)
);
shaalaa.com
  Is there an error in this question or solution?
Chapter 10: Structure Query Language - EXERCISE [Page 199]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×