SQL Quiz 1. What is the keyword you use to group the result by a column's values? GROUP BY ORDER BY None 2. Which SQL statement is used to extract data from a database? EXTRACT GET SELECT None of the above None 3. Which of the following is not an SQL Aggregate function AVG() ABS() COUNT() SUM() None 4. 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 None 5. The result of a SELECT statement can contain duplicate rows True False None 6. A NULL value is different than a zero value or a field that contains spaces True False None 7. Which of the following keyword you use to modify the existing value in an UPDATE query? EDIT UPDATE SET VALUE None 8. 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 None 9. 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 None 10. Which of the following is not a part of SQL Data Control Language Data Definition Language Data Manipulation Language Data Structured Language None 11. 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 None 12. The table rows are also known as Records Attributes Fields None of the above None 13. 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 None 14. 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 None 15. Which type of database management system represents relations using tables? Hierachical DBMS Object Oriented DBMS Relational DBMS None of the above None 16. Which SQL statement is used to insert new rows of data to a table in a database ADD APPEND ADJUST INSERT None 17. The AND operator displays a record if all the conditions separated by AND are TRUE True False None 18. Which SQL keyword you use to merge two tables based on a matching column? AND ATTACH JOIN MERGE None 19. What does SQL stand for? Structured Query Language Structured Queries Language Structured Question Language None of the above None 20. Which function returns the difference between two dates DATEDIFFERENCE() DATEDIFF() DATESUB() DATESUBTRACT() None 21. Which SQL statement is used to modify the existing records in a table? UPDATE MODIFY EDIT SAVE None of the above None 22. 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 None 23. Which of the following is not a RDBMS? MySQL MongoDB NexusDB PostgreSQL None 24. The table columns are also known as Records Attributes Fields None of the above None 25. Which SQL statement is used to delete complete data from an existing table? DELETE REMOVE TRUNCATE None of the above None 26. Subqueries can be nested multiple times True False None 27. Which of the following is not a Data Definition Language (DDL) statement? ALTER CREATE RENAME UPDATE None 28. The OR operator displays a record if any of the conditions separated by OR is TRUE True False None 29. Which SQL statement is used to remove rows from a table? DELETE DROP ELIMINATE REMOVE None 30. 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 None Time's up