--:--









Quiz for Complex Queries (Join, Subqueries)

Course: Database Management System | Subject: Unit 3 | Topic: SQL and Advanced SQL



Logo

Q1: Which SQL keyword is used to combine rows from two or more tables based on a related column?

Logo

Q2: What type of join returns only rows with matching values in both tables?

Logo

Q3: Which join returns all rows from the left table and matching rows from the right table?

Logo

Q4: What does a RIGHT JOIN return?

Logo

Q5: What is the purpose of a FULL OUTER JOIN?

Logo

Q6: Which operator is used to combine the results of two SELECT statements?

Logo

Q7: What does the EXISTS keyword do in a subquery?

Logo

Q8: Which subquery type is executed once and its result used by the outer query?

Logo

Q9: What is a correlated subquery?

Logo

Q10: Which SQL clause is used to filter rows after aggregation?

Logo

Q11: How do you write a subquery in the WHERE clause?

Logo

Q12: What is the difference between UNION and UNION ALL?

Logo

Q13: Which join produces a Cartesian product?

Logo

Q14: Which SQL keyword is used to combine columns from multiple tables?

Logo

Q15: What is the purpose of the alias in a SQL query?

Logo

Q16: Which join keyword returns only the rows with no matching rows in the other table?

Logo

Q17: What does the IN keyword do in a subquery?

Logo

Q18: What is the result of this query: SELECT * FROM A JOIN B ON A.id = B.id?

Logo

Q19: Which clause limits the number of rows returned?

Logo

Q20: How can you refer to a table with a shorter name in a query?

Are you ready to start test? Set your time limit