I have a database that has been collecting data for several years. Only the past 90 days is used daily, the rest can be archived. I would like to do so by moving it into another table. I have written a query that returns rows older than 90 days:
How can I take these results and insert them into another table
-Geates
Code:
SELECT table.A, table.B, table.C, table.D
FROM AllData AS table
WHERE dDATEADD(day, -90, table.D > '2013-09-11')
How can I take these results and insert them into another table
Code:
INSERT INTO ArchiveData (A, B, C, D)
VALUES (???)
-Geates