SQL Topic

SQL Quiz Practise 2

Question 1: Which type of join returns all records when there is a match in either left or right table?

Question 2: What does the COALESCE function do?

Question 3: Which statement is used to create a stored procedure?

Question 4: What is the purpose of the UNION operator?

Question 5: Which window function assigns a unique rank to each row within its partition?

Question 6: What is a correlated subquery?

Question 7: Which operator is used to test for existence of rows in a subquery?

Question 8: What does the WITH clause (Common Table Expression) do?

Question 9: Which statement is used to create an index on a table?

Question 10: What is the difference between RANK() and DENSE_RANK()?

Question 11: Which SQL statement is used to permanently save changes in a transaction?

Question 12: What is the purpose of the EXPLAIN statement?

Question 13: What does ACID stand for in database transactions?

Question 14: Which isolation level allows dirty reads?

Question 15: Which function is used to calculate a running total?

Question 16: What is the purpose of the LAG() window function?

Question 17: Which statement creates a view in SQL?

Question 18: What does the CASCADE option do in a FOREIGN KEY constraint?

Question 19: Which operator is used for pattern matching with regular expressions?

Question 20: What is a self-join?

Comments (0)

No comments yet. Be the first to comment!

LecturreAI Assistant

Hello! I'm LecturreAI

What would you like to learn today?