Complete the code to create a table named 'users'.
CREATE TABLE [1] (id SERIAL PRIMARY KEY);The table name should be 'users' as specified.
Complete the code to define a column 'email' with type for text data.
CREATE TABLE users (email [1] NOT NULL);VARCHAR(255) is used for text data with a max length of 255 characters.
Fix the error in the column definition for 'created_at' to store date and time.
CREATE TABLE users (created_at [1]);TIMESTAMP stores date and time values in PostgreSQL.
Fill both blanks to create a table with 'id' as primary key and 'price' as decimal.
CREATE TABLE products (id [1] PRIMARY KEY, price [2]);
Use SERIAL for auto-incrementing primary key and DECIMAL(10,2) for price with two decimals.
Fill all three blanks to create a table 'orders' with 'order_id' as primary key, 'order_date' as date, and 'is_paid' as boolean.
CREATE TABLE orders (order_id [1] PRIMARY KEY, order_date [2], is_paid [3]);
Use SERIAL for 'order_id' primary key, DATE for 'order_date', and BOOLEAN for 'is_paid'.