Complete the code to select all records from a table named 'employees'.
SELECT * FROM [1];The SQL command SELECT * FROM employees; retrieves all records from the 'employees' table.
Complete the code to filter records where the age is greater than 30.
SELECT * FROM employees WHERE age [1] 30;
The operator > means 'greater than', so this query selects employees older than 30.
Fix the error in the SQL query to count the number of employees.
SELECT COUNT([1]) FROM employees;Using COUNT(*) counts all rows regardless of null values in any column.
Fill both blanks to create a query that selects employee names and orders them alphabetically.
SELECT [1] FROM employees ORDER BY [2];
Selecting name and ordering by name lists employees alphabetically.
Fill all three blanks to create a dictionary comprehension that maps employee names to their salaries if salary is above 50000.
{ [1]: [2] for [3] in employees if [3]['salary'] > 50000 }This comprehension creates a dictionary with employee names as keys and salaries as values, filtering salaries above 50000.