Complete the code to select all employees whose department is in the given list.
SELECT * FROM employees WHERE department [1] ('Sales', 'HR', 'IT');
The IN keyword is used to check if a value matches any value in a list.
Complete the code to find products with IDs in the specified list.
SELECT name FROM products WHERE product_id [1] (101, 102, 103);
The IN clause allows filtering rows where the column matches any value in the list.
Fix the error in the query to correctly filter customers from specific cities.
SELECT * FROM customers WHERE city [1] ('New York', 'Chicago', 'Boston');
The IN keyword is needed to check if city matches any in the list.
Fill both blanks to select orders with status in the list and amount greater than 100.
SELECT * FROM orders WHERE status [1] ('Pending', 'Shipped') AND amount [2] 100;
Use IN to filter status in the list and > to check amount greater than 100.
Fill all three blanks to select employees with role in the list, salary above 50000, and department not 'HR'.
SELECT * FROM employees WHERE role [1] ('Manager', 'Developer') AND salary [2] 50000 AND department [3] 'HR';
Use IN for role list, > for salary comparison, and != to exclude 'HR' department.