Complete the code to create a new schema named 'sales'.
CREATE [1] sales;The CREATE SCHEMA command is used to create a new schema in PostgreSQL.
Complete the code to switch to the schema named 'marketing'.
SET search_path TO [1];To use a specific schema, set the search_path to that schema's name.
Fix the error in the code to create a schema named 'finance'.
CREATE [1] finance;The command must end with a semicolon to be valid SQL syntax.
Fill both blanks to set the search path to 'hr' schema and then create a table named 'employees'.
SET [1] TO hr; CREATE [2] employees (id INT);
Use SET search_path TO hr; to switch schema, then CREATE TABLE to create a table.
Fill all three blanks to create a schema 'analytics', switch to it, and create a table 'reports' with a column 'report_id' as integer.
CREATE [1] analytics; SET [2] TO analytics; CREATE [3] reports (report_id INT);
First create the schema, then set the search path to it, then create the table inside it.