Hi, I am working on a new DB and running into an issue with an archive table I have. The DB is currently setup to not allow duplicates of the field "file_number" on table t_filetrac. The data is imported from an Excel file into a table named t_uploads first, then appended to t_filetrac. I import to t_uploads first so I can run some queries to edit certain data before the record is inserted into t_filetrac table.
I have set up a table named t_archives which I want the end user to be able to select a date range and append loans from t_filetrac from a specific date range (t_filetrac will quickly build up to over 10K records so I want to archive some records to allow for faster DB operations).
I need to have the append query from t_uploads to t_filetrac also check t_archives to ensure that the "file_number" is not present and if it is, do not append to the t_filetrac again.
Suggestions?