Complete the code to select all columns from the table named 'employees'.
SELECT [1] FROM employees;The asterisk (*) symbol selects all columns from the table.
Complete the code to create a table named 'products' with a column 'price' that stores decimal numbers.
CREATE TABLE products (price [1]);DECIMAL is used to store numbers with decimal points, perfect for prices.
Fix the error in the code to create a table with a column 'created_at' that stores date and time.
CREATE TABLE orders (created_at [1]);TIMESTAMP stores both date and time, which is needed for 'created_at'.
Fill both blanks to create a table 'locations' with a column 'coordinates' that stores geometric points.
CREATE TABLE locations (coordinates [1]); -- Use [2] for geometric data type
POINT is the PostgreSQL data type for geometric points, used for coordinates.
Fill all three blanks to create a table 'users' with a JSON column 'profile', a UUID column 'user_id', and a boolean column 'active'.
CREATE TABLE users (user_id [1], profile [2], active [3]);
UUID is used for unique identifiers, JSON stores structured data, and BOOLEAN stores true/false values.