Complete the SQL query to select all columns from the table named 'employees'.
SELECT [1] FROM employees;In SQL, * means select all columns from the table.
Complete the SQL query to select the 'name' column from the 'students' table where the 'age' is greater than 18.
SELECT name FROM students WHERE age [1] 18;
The symbol > means 'greater than' in SQL, so it selects students older than 18.
Fix the error in the SQL query to count the number of rows in the 'orders' table.
SELECT COUNT([1]) FROM orders;Using COUNT(*) counts all rows in the table regardless of column values.
Fill all blanks to select the 'product' and 'price' columns from 'inventory' where 'price' is less than 100.
SELECT [1], [2] FROM inventory WHERE price [3] 100;
Select the columns product and price, and use < to filter prices less than 100.
Fill all three blanks to create a dictionary-like result with keys as uppercase 'category' and values as 'count' of items where count is greater than 10.
SELECT [1] AS category_upper, [2] FROM products WHERE [3] > 10;
Use UPPER(category) to get uppercase category names, select count column, and filter where count is greater than 10.