insert into from another table code example
Example 1: sql server insert into select
INSERT INTO sales.addresses (street, city, state, zip_code)
SELECT
street,
city,
state,
zip_code
FROM
sales.customers
ORDER BY
first_name,
last_name;
Example 2: create table and insert values from another table
CREATE TABLE new_table AS
SELECT *
FROM old_table;