To do this, the SQL CREATE TABLE syntax is: CREATE TABLE new_table AS (SELECT * FROM old_table WHERE 1=2); For example: CREATE TABLE suppliers AS (SELECT * FROM companies WHERE 1=2);
One of the most essential T-SQL capabilities is the CREATE TABLE AS SELECT (CTAS) statement. CTAS is a concurrent operation that builds a new table from a SELECT statement's output. CTAS is the easiest and quickest way to create and insert data into a table with only one command.
The INSERT INTO SELECT statement transfers data from one table to another. The data types in the source and target tables must match for the INSERT INTO SELECT query to work. Existing records in the target table will not be modified.
If the database is shown under Recent, go to File > Open and choose it. If this is not the case, use one of the browse options to find the database.
Select the database you want to open in the Open dialogue box, then click Open.
Click Table in the Tables group on the Create tab.
excellent teaching technique...one of the best course content...