From the course: Text to SQL: Amazon Redshift Serverless for Generative SQL in Amazon Q
Unlock this course with a free trial
Join today to access over 25,400 courses taught by industry experts.
Writing a query to create a table in Amazon Redshift Query Editor
From the course: Text to SQL: Amazon Redshift Serverless for Generative SQL in Amazon Q
Writing a query to create a table in Amazon Redshift Query Editor
- [Instructor] After we've created our database in Amazon Redshift Serverless, we may create a table using the web-based editor, Query Editor v2. If we use the CREATE TABLE statement in SQL, we may provide a table name and then declare the variable names, the data type. And before we execute the command, we close with a semicolon before we run our SQL statement. In this example, we have declared the CREATE TABLE statement followed by a table name for Sydney house prices, and listed the column or variable names with their corresponding data types.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Introducing the datasets2m
-
(Locked)
Open data source options1m 35s
-
(Locked)
Writing a query to create a table in Amazon Redshift Query Editor38s
-
(Locked)
Loading data into the table1m 13s
-
(Locked)
Understanding structured data1m 2s
-
(Locked)
Defining a schema2m 12s
-
(Locked)
Viewing the schema1m 1s
-
(Locked)
Tables and schemas4m 37s
-
(Locked)
-
-
-