SQL MCQ Quiz Hub

SQL MCQ SET 18

Choose a topic to test your knowledge and improve your SQL skills

1. What is the full form of SQL?




2. Which of the following is not a valid SQL type?




3. Which of the following is not a DDL command?




4. Which of the following are TCL commands?




5. Which statement is used to delete all rows in a table without having the action logged?




6. SQL Views are also known as




7. How many Primary keys can have in a table?




8. Which datatype can store unstructured data in a column?




9. Which of the following is not Constraint in SQL?




10. Which of the following is not a valid aggregate function?




11. Which data manipulation command is used to combines the records from one or more tables?




12. Which operator is used to compare a value to a specified list of values?




13. What operator tests column for absence of data




14. In which of the following cases a DML statement is not executed?




15. If we have not specified ASC or DESC after a SQL ORDER BY clause, the following is used by default




16. A command that lets you change one or more field in a table is:




17. Which of the following is also called an INNER JOIN?




18. Which of the following is true about the HAVING clause?




19. ______ clause creates temporary relation for the query on which it is defined.




20. The SQL statement: SELECT ROUND (65.726, -1) FROM DUAL; Prints:




21. Which of the following is true about the SQL AS clause?




22. ____ command makes the updates performed by the transaction permanent in the database?




23. Which command is used to change the definition of a table in SQL?




24. Which type of JOIN is used to returns rows that do not have matching values?




25. A CASE SQL statement is ________?




26. Which statement is true regarding routines and triggers?




27. Which statement is true regarding procedures?




28. Which of the following is the basic approaches for joining tables?




29. Why we need to create an index if the primary key is already present in a table?




30. Group of operations that form a single logical unit of work is known as




31. Shared locks are applied while performing




32. Sequence can generate




33. A sequence in SQL can generate a maximum number:




34. Which of the following is the correct order of a SQL statement?




35. What is the difference between a PRIMARY KEY and a UNIQUE KEY?




36. Which operator is used to compare the NULL values in SQL?




37. When the wildcard in a WHERE clause is useful?




38. _____ is NOT a type of constraint in SQL language?




39. ______ is a program that performs some common action on database data and also stored in the database.




40. What is the advantage of the clustered index?




41. Which of the following are the DATETIME data types that can be used in column definitions?




42. Which data dictionary table can be used to show the object privileges granted to the user on specific columns?




43. What is the need for our query to execute successfully on an existing view?




44. Which of the following operator can be used with a multiple-row subquery?