SQL Quiz 1. Which SQL keyword is used to sort the data in ascending or descending order, based on one or more columns SORT SORT BY ORDER ORDER BY 2. The OR operator displays a record if any of the conditions separated by OR is TRUE True False 3. What is the keyword you use to group the result by a column's values? GROUP BY ORDER BY 4. A NULL value is different than a zero value or a field that contains spaces True False 5. Which of the following keyword you use to modify the existing value in an UPDATE query? EDIT UPDATE SET VALUE 6. The table columns are also known as Records Attributes Fields None of the above 7. The AND operator displays a record if all the conditions separated by AND are TRUE True False 8. Which SQL statement is used to delete complete data from an existing table & table structure from the database? DROP DELETE TRUNCATE None of the above 9. Which SQL statement is used to return only different values? SELECT DIFFERENT ColumnName FROM TableName; SELECT DISTINCT ColumnName FROM TableName; SELECT UNIQUE ColumnName FROM TableName; None of the above 10. With SQL, how do you select a column named "FirstName" from a table named "Employees"? SELECT * FROM Employees SELECT FirstName FROM Employees SELECT FROM Employees.FirstName SELECT * FirstName FROM Employees 11. Which type of database management system represents relations using tables? Hierachical DBMS Object Oriented DBMS Relational DBMS None of the above 12. Which SQL statement is used to insert new rows of data to a table in a database ADD APPEND ADJUST INSERT 13. The MIN() function returns the smallest value of the selected column and The MAX() function returns the largest value of the selected column True False 14. Which SQL statement is used to extract data from a database? EXTRACT GET SELECT None of the above 15. The result of a SELECT statement can contain duplicate rows True False 16. The table rows are also known as Records Attributes Fields None of the above 17. Which function returns the difference between two dates DATEDIFFERENCE() DATEDIFF() DATESUB() DATESUBTRACT() 18. Subqueries can be nested multiple times True False 19. Which of the following is not a Data Definition Language (DDL) statement? ALTER CREATE RENAME UPDATE 20. Which SQL statement is used to remove rows from a table? DELETE DROP ELIMINATE REMOVE 21. Which of the following is not a part of SQL Data Control Language Data Definition Language Data Manipulation Language Data Structured Language 22. Which of the following is not an SQL Aggregate function AVG() ABS() COUNT() SUM() 23. With SQL, how do you select all the columns from a table named "Employees"? SELECT FROM Employees SELECT * Employees SELECT * FROM Employees SELECT [all] FROM Employees 24. Which SQL keyword you use to merge two tables based on a matching column? AND ATTACH JOIN MERGE 25. What does SQL stand for? Structured Query Language Structured Queries Language Structured Question Language None of the above 26. Which SQL statement is used to modify the existing records in a table? UPDATE MODIFY EDIT SAVE None of the above 27. Which SQL statement is used to delete complete data from an existing table? DELETE REMOVE TRUNCATE None of the above 28. Which of the following is not a RDBMS? MySQL MongoDB NexusDB PostgreSQL 29. Which statement is correct To sort in ascending or descending order we can use the keywords ASC or DESC respectively To sort in ascending or descending order we can use the keywords DESC or ASC respectively To sort in ascending or descending order we can use the keywords AESC or DSC respectively To sort in ascending or descending order we can use the keywords DSC or AESC respectively 30. The UNION operator is used to Combine the result-set of no more than two SELECT statements and must have the same number of columns Combine the result-set of no more than two SELECT statements and doesn't have the same number of columns Combine the result-set of two or more SELECT statements and must have the same number of columns Combine the result-set of two or more SELECT statements and doesn't have the same number of columns Time is Up! Time's up