Complete the code to create a permanent table named employees.
CREATE [1] TABLE employees (id INT, name STRING);Permanent tables are created with the keyword PERMANENT or no keyword at all. Here, we explicitly use PERMANENT to create a permanent table.
Complete the code to create a temporary table named temp_sales.
CREATE [1] TABLE temp_sales (sale_id INT, amount FLOAT);Temporary tables are created with the keyword TEMPORARY. They exist only during the user session.
Fix the error in the code to create a transient table named orders.
CREATE [1] TABLE orders (order_id INT, order_date DATE);Transient tables are created with the keyword TRANSIENT. They do not have fail-safe but data persists beyond the session.
Fill both blanks to create a temporary table named session_data with two columns.
CREATE [1] TABLE session_data (user_id [2], login_time TIMESTAMP);
The table is temporary, so use TEMPORARY. The user_id column is an integer, so use INT as the data type.
Fill all three blanks to create a transient table named product_info with columns id, name, and price.
CREATE [1] TABLE product_info (id [2], name [3], price FLOAT);
The table is transient, so use TRANSIENT. The id column is an integer (INT) and the name column is text (STRING).