SELECT...INTO Statement Examples
SQL statement | Description |
SELECT Employees.* | Selects all records in the Employees table and copies them into a new table named Emp Backup. |
SELECT Employees.* | Creates a new table that contains only employee records that have the title Trainee. |
SELECT Employees.* | Makes a copy of the Employees table and places the new table in the BACKUP database. |
SELECT Employees.*, Salary | Creates a new table that contains employee and payroll data for all trainees. The Employees and Payroll tables have a one-to-one relationship. The new table contains all of the data from the Employees table, plus the Salary field from the Payroll table. |