Complete the code to select rows where age is equal to 30.
SELECT * FROM users WHERE age [1] 30;
The equal sign = is used to compare if two values are the same.
Complete the code to select rows where salary is greater than 50000.
SELECT * FROM employees WHERE salary [1] 50000;
The greater than operator > selects values larger than the given number.
Fix the error in the code to select rows where score is not equal to 100.
SELECT * FROM results WHERE score [1] 100;
The not equal operator != selects rows where the value is different from the given number.
Complete the code to select rows where price is less than or equal to 100.
SELECT * FROM products WHERE price [1] 100;
The operator <= means 'less than or equal to'. Use it to ensure price is not more than 100.
Fill both blanks to select rows where quantity is greater than 10 and less than 50.
SELECT * FROM inventory WHERE quantity [1] 10 AND quantity [2] 50;
The operators > and < select quantities strictly between 10 and 50 (exclusive).