On This Page

This set of DataBase Management System (DBMS) Multiple Choice Questions & Answers (MCQs) focuses on SQL Set 1

Q1 | What does DML stand for?
Q2 | With SQL, how do you select all the records from a table named “Persons” where the valueof the column “FirstName” ends with an “a”?
Q3 | With SQL, how can you return all the records from a table named “Persons” sorteddescending by “FirstName”?
Q4 | With SQL, how can you return the number of not null records in the “Persons” table?
Q5 | What does the ALTER TABLE clause do?
Q6 | The UPDATE SQL clause can _____________
Q7 | The UNION SQL clause can be used with _____________
Q8 | Which SQL statement is used to return only different values?
Q9 | Which SQL keyword is used to sort the result-set?
Q10 | How can you change “Hansen” into “Nilsen” in the “LastName” column in the Persons table?
Q11 | Which of the following command makes the updates performed by the transactionpermanent in the database?
Q12 | Which TCL command undo all the updates performed by the SQL in the transaction?
Q13 | SQL query to find all the cities whose humidity is 95.
Q14 | SQL query to find the temperature in increasing order of all cities.
Q15 | What is the meaning of LIKE ‘%0%0%’?
Q16 | Find the names of these cities with temperature and condition whose condition is neithersunny nor cloudy.
Q17 | Find the name of those cities with temperature and condition whose condition is either sunny or cloudy but temperature must be greater than 70.
Q18 | Find all the tuples having a temperature greater than ‘Paris’.
Q19 | Find all the cities with temperature, condition and humidity whose humidity is in the rangeof 63 to 79.
Q20 | The command to remove rows from a table ‘CUSTOMER’ is __________________
Q21 | What type of join is needed when you wish to include rows that do not have matchingvalues?
Q22 | What type of join is needed when you wish to return rows that do have matching values?
Q23 | Which of the following is one of the basic approaches for joining tables?
Q24 | The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID,ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID?
Q25 | A UNION query is which of the following?