Complete the code to create a new database named 'sales_db'.
CREATE DATABASE [1];The CREATE DATABASE command followed by the database name creates a new database.
Complete the code to switch to the 'sales_db' database.
USE [1];The USE command followed by the database name switches the current context to that database.
Fix the error in the code to create a schema named 'marketing' inside the 'sales_db' database.
CREATE SCHEMA [1].marketing;To create a schema inside a database, prefix the schema name with the database name separated by a dot.
Fill both blanks to switch to the 'marketing' schema inside the 'sales_db' database.
USE [1].[2];
The USE command can switch to a specific schema by specifying database.schema.
Fill all three blanks to create a table named 'customers' with columns 'id' (integer) and 'name' (string) inside the 'marketing' schema of 'sales_db'.
CREATE TABLE [1].[2].[3] (id INT, name STRING);
To create a table inside a schema and database, specify database.schema.table.