Complete the code to select all columns from a table named 'employees'.
SELECT [1] FROM employees;In SQL, * means select all columns from the table.
Complete the code to limit the number of rows returned to 5 in PostgreSQL.
SELECT * FROM products [1] 5;
PostgreSQL uses LIMIT to restrict the number of rows returned.
Fix the error in the PostgreSQL query to add a new column named 'age' of type integer.
ALTER TABLE users [1] COLUMN age INTEGER;In PostgreSQL, to add a new column, use ADD COLUMN.
Fill both blanks to write a PostgreSQL query that selects all columns from 'orders' and orders results by 'order_date' descending.
SELECT [1] FROM orders ORDER BY order_date [2];
Use * to select all columns and DESC to sort descending.
Fill all three blanks to write a PostgreSQL query that creates a table 'customers' with columns 'id' as serial primary key, 'name' as text, and 'email' as unique text.
CREATE TABLE customers (id [1] PRIMARY KEY, name [2], email [3] UNIQUE);
Use SERIAL for auto-increment id, and TEXT for name and email columns.