sql server insert into select
snippet in sql

insert into select

user2820

INSERT INTO table2 (column1, column2, column3, ...)

SELECT column1, column2, column3, ...
 FROM table1

WHERE condition; 

sql server insert into select

user300

INSERT INTO sales.addresses (street, city, state, zip_code) 
SELECT
    street,
    city,
    state,
    zip_code
FROM
    sales.customers
ORDER BY
    first_name,
    last_name; 

insert into select

user1910


INSERT INTO table2

SELECT * FROM table1
WHERE condition; 

insert into select

user9682


INSERT INTO table2 (column1, column2, column3, ...)

SELECT column1, column2, column3, ...
 FROM table1

WHERE condition;