Test your foundational knowledge of SQL joins and aggregation functions with this beginner-friendly quiz. Strengthen your SQL skills by reviewing essential concepts such as inner and outer joins, GROUP BY, and aggregate functions including COUNT, SUM, and AVG.
Which SQL clause is used to combine rows from two tables based on a related column, as shown in the query: SELECT * FROM orders INNER JOIN customers ON orders.customer_id = customers.id?
What does a LEFT JOIN return when used between two tables named 'students' and 'grades'?
Which SQL function would you use to find the total number of rows in a table named 'products'?
What is the purpose of the GROUP BY clause in a SQL SELECT statement?
Which join includes all records from both tables, filling with NULLs where there are no matches?
To find the largest value in the 'salary' column of an 'employees' table, which aggregate function would you use?
Which SQL query counts only the distinct values in a 'country' column?
In an SQL query, what does a RIGHT JOIN between 'orders' and 'shippers' return?
Which SQL aggregate function calculates the average of all entries in a numeric column such as 'score'?
Which SQL clause is used to filter groups created by GROUP BY, such as showing only departments with more than 5 employees?