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