Example: Insert Using a SELECT Subquery
This example uses a SELECT subquery to insert a row for every employee who has more than ten years of experience into a new table, promotion, which contains three columns defined as name, deptno, and yrsexp.
INSERT INTO promotion (deptnum, empname, yearsexp)
SELECT deptno, name, yrsexp
FROM employee
WHERE yrsexp > 10 ;