Hi,
I try to select data from one table and insert into another using one query. I've made it like this:
INSERT INTO z_conversion01 (emp-no, month, year, comp-amt)
SELECT emp-no, month, year, SUM(comp-amt)
FROM p_sal_comps
WHERE year > 2006
AND comp-no IN (403, 409, 465...