25 solutions available
Question 6Assertion. Both UPDATE and ALTER TABLE commands are similar.Reason. The UPDATE command as well ALTER TABLE command make changes in the...
Question 10What is the error in following statement ?UPDATE EMPL ;
Question 11Identify the error :DELETE ALL FROM TABLE EMPL ;
Question 12Differentiate between DDL and DML.
Question 1Consider the following SQL statement. What type of statement is this ?CREATE TABLE employee (name VARCHAR, id INTEGER)DMLDDLDCLIntegrity...
Question 5In the given query which keyword has to be inserted ?INSERT INTO employee ............... (1002, Kausar, 2000) ;TableValuesRelationField
Question 13Which of the following is not a DDL command ?UPDATETRUNCATEALTERNone of these
Question 4How is FOREIGN KEY commands related to the PRIMARY KEY ?
Question 8(i)Differentiate between DROP TABLE, DROP DATABASE.
Question 2Increase salary of employee records by 10% (table employee).
Question 3Give commission of Rs.500 to all employees who joined in year 1982 (table Empl).
Question 7Write Query statements for following transaction : (Consider tables of question 12)Increase price of all products by 10%.List the details...
Question 9In the added column Grade, assign grades as follows :if sal is in range 700 — 1500, Grade is 1 ;if sal is in range 1500 — 2200, Grade is 2...
Question 14Create the table Department table based on the following table instance chart.Column NameIDNameData TypeNUMBERVARCHARLength825
Question 15Populate the table Department with data from table dept. Including only required columns.
Question 16Create the table Employee based on the following table instance chart.Column NameData...
Question 17Drop table Employee and Department.
Question 18Create table Customer as per following Table Instance Chart.Column NameData...
Question 19Add one column Email of data type VARCHAR and size 30 to the table Customer.
Question 20Add one more column CustomerIncomeGroup of datatype VARCHAR(10).
Question 21Insert few records with relevant information, in the table.
Question 22Drop the column CustomerIncomeGroup from table Customer.
Question 23Create table Department as per following Table Instance Chart.Column NameDeptIDDeptNameKey TypePrimary Nulls/Unique NOT...
Question 24Create table Employee as per following Table Instance Chart.Column NameEmpIDEmpNameEmpAddressEmpPhoneEmpSalDeptIDKey TypePrimary...
Question 25View structures of all tables created by you.