SQL Notes & Ques
SQL Notes & Ques
(b) Which field should be made the primary key? Justify your answer.
Ques 2: Charu has to create a database named MYEARTH in MYSQL. She now needs to create a
table named CITY in the database to store the records of various cities across the globe. The table
CITY has the following structure:
Ques 4: Which of the following is a DDL command? a) SELECT b) ALTER c) INSERT d) UPDATE
Ques 5: A departmental store MyStore is considering to maintain their inventory using SQL to
store the data. As a database administer, Abhay has decided that :
ItemNo - numeric
Scode - numeric
Quantity – numeric
Ques 6: Write the full forms of DDL and DML. Write any two commands of DML in SQL.
Ques 10: Write SQL query to add a column totalprice with data type numeric and size 10, 2 in a
table product.