Database_Normalization_QA
Database_Normalization_QA
Answer: c - The process of generating multiple execution plans for a query and selecting the
most efficient one
2. Question: Which SQL command is used to drop a view?
Answer: a - DROP VIEW
3. Question: Which of the following factors can impact the performance of SQL queries?
Answer: d - All of the above
4. Question: Which of the following statements regarding views in SQL is true?
Answer: c - Views can contain data from multiple tables
5. Question: Which SQL keyword is used to call a stored procedure?
Answer: d - CALL
6. Question: Which of the following SQL commands is used to create a stored procedure?
Answer: b - CREATE PROCEDURE
7. Question: Which of the following types of indexes is suitable for columns with high
cardinality?
Answer: c - Non-clustered index
8. Question: What is an index in a relational database?
Answer: c - A data structure that improves the speed of data retrieval operations on a table
9. Question: When should you consider creating an index on a column?
Answer: a - When the column is used in a WHERE clause of SELECT queries
10. Question: What is a view in SQL?
Answer: a - A virtual table based on the result of a SELECT query
11. Question: Which of the following statements regarding stored procedures is true?
Answer: d - Stored procedures can be called from within other stored procedures
12. Question: What is a parameterized stored procedure in SQL?
Answer: c - A stored procedure that accepts input parameters
13. Question: What is a subquery in SQL?
Answer: d - A query nested within another query
14. Question: Which of the following statements about updating views in SQL is true?
Answer: b - Updates to views are directly applied to the underlying tables
15. Question: Which of the following is a common technique for optimizing SQL queries?
Answer: c - Normalizing the database schema
16. Question: What is the purpose of using transactions in stored procedures?
Answer: b - To isolate a group of SQL statements to ensure data consistency
17. Question: What is the purpose of using a view in SQL?
Answer: d - To provide a way to encapsulate complex queries
18. Question: Which of the following statements is true about correlated subqueries?
Answer: d - They execute once for each row processed by the outer query
19. Question: Can SQL functions contain DDL (Data Definition Language) statements?
Answer: c - Yes, but only in specific cases
20. Question: What happens to a view if the underlying tables are modified?
Answer: a - The view becomes invalid
21. Question: Which SQL command is used to create an index?
Answer: c - CREATE INDEX
22. Question: What is the advantage of using stored procedures and functions in SQL?
Answer: c - They simplify application logic by encapsulating complex SQL operations
23. Question: Can you create an index on a view in SQL?
Answer: c - Yes, if the view is materialized
24. Question: What is the primary purpose of creating an index in SQL?
Answer: d - To improve the performance of SELECT queries
25. Question: Which SQL keyword is used to create a view?
Answer: c - CREATE VIEW
26. Question: Which of the following statements about indexes is true?
Answer: d - Indexes can only be created on primary keys
27. Question: Which of the following statements is true about SQL functions?
Answer: a - Functions always return a single value
28. Question: What is a clustered index in SQL?
Answer: b - An index that physically reorders the rows in a table based on the index key
29. Question: What is a stored procedure in SQL?
Answer: d - A sequence of SQL statements stored in the database
30. Question: What is the key difference between stored procedures and functions in SQL?
Answer: d - Stored procedures can be invoked like a regular SQL statement, while functions
must be called within SQL expressions
31. Question: There are no repeating or duplicate fields. What normal form is this?
Answer: 1NF
32. Question: All non-key fields depend on all components of the primary key. What normal
form is this?
Answer: 2NF
33. Question: No non-key field depends upon another non-key field. What normal form is this?
Answer: 3NF