here's my code:
insert into archive from temp where temp.field6>archive.field6
i would like to insert the entire row into a table archive
from table temp
where one field is greater than another.
what is wrong with my syntax? it is giving me ERROR ON INSERT InTO
edit:
here is what i have so far:
INSERT INTO archive
SELECT temp.*
FROM temp, archive
WHERE temp.field6>max(archive.field6);
im sorry i was completely wrong with the first query
please note the new MAX
i am getting an error because i cannot use the aggregate function here.