SQL SELECT INTO Keyword
SELECT INTO
The SELECT INTO command copies data
from one table and inserts it into a new table.
The following SQL statement creates a backup copy of Customers:
FROM Customers;
The following SQL statement uses the IN clause to copy the table into a new table in another database:
FROM Customers;
The following SQL statement copies only a few columns into a new table:
FROM Customers;
The following SQL statement copies only the German customers into a new table:
FROM Customers
WHERE Country = 'Germany';
The following SQL statement copies data from more than one table into a new table:
INTO CustomersOrderBackup2017
FROM Customers
LEFT JOIN Orders ON Customers.CustomerID = Orders.CustomerID;