Complete the code to select all employees with salary greater than 50000.
SELECT * FROM employees WHERE salary [1] 50000;
The '>' operator selects rows where the salary is greater than 50000.
Complete the code to find products with quantity less than or equal to 10.
SELECT product_name FROM inventory WHERE quantity [1] 10;
The '<=' operator selects rows where quantity is less than or equal to 10.
Fix the error in the code to select customers with age not equal to 30.
SELECT * FROM customers WHERE age [1] 30;
In SQL, '<>' means 'not equal to'. '!=' is not standard in all SQL dialects.
Fill both blanks to select orders with total_price greater than 100 and less than 500.
SELECT order_id FROM orders WHERE total_price [1] 100 AND total_price [2] 500;
The first blank uses '>' to select prices greater than 100, the second uses '<' for prices less than 500.
Fill all three blanks to select employees with age greater than 25, salary less than or equal to 70000, and department not equal to 'HR'.
SELECT * FROM employees WHERE age [1] 25 AND salary [2] 70000 AND department [3] 'HR';
Use '>' for age greater than 25, '<=' for salary less than or equal to 70000, and '<>' for department not equal to 'HR'.