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