Complete the code to select all customers whose names start with 'A'.
SELECT * FROM customers WHERE name [1] 'A%';
The LIKE operator is used to match patterns in SQL. Here, 'A%' means names starting with 'A'.
Complete the code to find products with 'book' anywhere in their description.
SELECT * FROM products WHERE description [1] '%book%';
The LIKE operator with '%book%' finds any description containing 'book' anywhere.
Fix the error in the query to find emails ending with '.com'.
SELECT email FROM users WHERE email [1] '%.com';
The LIKE operator is needed to match the pattern '%.com' for emails ending with '.com'.
Fill both blanks to select orders where the status starts with 'sh' and ends with 'ed'.
SELECT * FROM orders WHERE status [1] 'sh%' AND status [2] '%ed';
Both conditions use LIKE with wildcards to match patterns at the start and end of the status.
Fill all three blanks to select employees whose first name contains 'an', last name starts with 'S', and email ends with '.org'.
SELECT * FROM employees WHERE first_name [1] '%an%' AND last_name [2] 'S%' AND email [3] '%.org';
All three conditions use LIKE with appropriate patterns to match parts of the strings.