Complete the code to select all columns from the table named 'employees'.
SELECT [1] FROM employees;Using * selects all columns from the table.
Complete the code to select the first 5 rows from the 'products' table using PostgreSQL syntax.
SELECT * FROM products [1] 5;
PostgreSQL uses LIMIT to restrict the number of rows returned.
Fix the error in the query to select distinct city names from the 'customers' table.
SELECT DISTINCT [1] FROM customers;The column name is city. Using the correct column name avoids errors.
Fill both blanks to select the name and the length of the name from the 'users' table using PostgreSQL functions.
SELECT name, [1](name) AS name_length FROM users WHERE [2](name) > 5;
PostgreSQL uses the LENGTH function to get the number of characters in a string.
Fill all three blanks to select the name in uppercase, the length of the name, and filter names longer than 3 characters from the 'members' table.
SELECT [1](name) AS upper_name, [2](name) AS name_len FROM members WHERE [3](name) > 3;
UPPER converts text to uppercase, and LENGTH returns the number of characters in the string.