I need to take over all the records from a history table which has code,description,StartDate, EndDate fields in it to a new table which has code,description fields in it. I need to take over only the records with the most current dates.
INSERT INTO tNewTable(Code,Description)
SELECT MAX(RequisitionStartDate,
Code,Description FROM tOldTable
GROUP BY Code, Description
does not work cause the new table does not have a StartDate field.
...Thanks in advance
INSERT INTO tNewTable(Code,Description)
SELECT MAX(RequisitionStartDate,
Code,Description FROM tOldTable
GROUP BY Code, Description
does not work cause the new table does not have a StartDate field.
...Thanks in advance