25 solutions available
Question 4Assertion. The PRIMARY KEY can be defined only once in the CREATE TABLE command.Reason. If the PRIMARY KEY is a composite key, then it is...
Question 5Assertion. INSERT, UPDATE, DELETE, SELECT are the DML commands.Reason. The DML commands manipulate the data stored in the database...
Question 2Differentiate between DDL and DML commands.
Question 3Kabir has created the following table named exam :RegNoNameSubjectMarks1SanyaComputer...
Question 4(c)Consider the following table named "GYM" with details about fitness items being sold in the store. Write command of SQL for (i) to...
Question 5(a)Mr. James created a table CLIENT with 2 rows and 4 columns. He added 2 more rows to it and deleted one column. What is the Cardinality...
Question 5(b)Consider the following table FITNESS with details about fitness products being sold in the store. Write command of SQL for (i) to...
Question 6Write SQL commands for the following on the basis of given table CLUB.Table :...
Question 7Write SQL commands for the following on the basis of given table STUDENT1.Table :...
Question 8What is foreign key ? How do you define a foreign key in your table ?
Question 9How is FOREIGN KEY commands different from PRIMARY KEY command ?
Question 10How is FOREIGN KEY commands related to the PRIMARY KEY ?
Question 11What are table constraints ? What are column constraints ? How are these two different ?
Question 12Insert all those records of table Accounts into table Pending where amt_outstanding is more than 10000.
Question 13Increase salary of employee records by 10% (table employee).
Question 14Add a constraint (NN-Grade) in table Empl (given before assignment) that declares column Grade not null.
Question 15Drop the table Empl.
Question 16(i)Differentiate between DROP TABLE, DROP DATABASE.
Question 16(ii)Differentiate between DROP TABLE, DROP clause of ALTER TABLE.
Question 17Mr. Mittal is using a table with following columns :Name, Class, Stream_Id, Stream_name He needs to display names of students who have not...
Question 18The Doc_name Column of a table Hospital is given below :Doc_nameAvinashHariharanVinayakDeepakSanjeevBased on the information, find the...
Question 19Sarthak, a student of class XII, created a table "Class". Grade is one of the columns of this table. To find the details of students whose...
Question 20What is the purpose of ALTER TABLE command ? Can you add new columns with constraints such as NOT NULL ? Give example to justify your...
Question 21What is the purpose of DROP TABLE command in MySql ? How is it different from DELETE command ?
Question 1What is SQL ? What are the different categories of SQL commands ?