Hi I am trying to create a new table by combining 5 other tables. I can't seem to get my syntax right, although I've done it before like this. I'm using SQ:*Plus in Oracle. I get an erron on line two "missing key word". Any suggestions? Thanks in advance for any help. This is what I have:
SELECT *
INSERT INTO ALL_PRODUCT_NEW
FROM
(
SELECT *
FROM HI_PRODUCT_NEW
UNION ALL
SELECT *
FROM NW_PRODUCT_NEW
UNION ALL
SELECT *
FROM GA_PRODUCT_NEW
UNION ALL
SELECT *
FROM CO_PRODUCT_NEW
UNION ALL
SELECT *
FROM MA_PRODUCT_NEW
);
The greatest risk, is not taking one.
SELECT *
INSERT INTO ALL_PRODUCT_NEW
FROM
(
SELECT *
FROM HI_PRODUCT_NEW
UNION ALL
SELECT *
FROM NW_PRODUCT_NEW
UNION ALL
SELECT *
FROM GA_PRODUCT_NEW
UNION ALL
SELECT *
FROM CO_PRODUCT_NEW
UNION ALL
SELECT *
FROM MA_PRODUCT_NEW
);
The greatest risk, is not taking one.