Related to thread705-1488171
In that thread, we ended up with the code:
Well, I realized that it would be best to first get rid of the duplicates in the same table, so I setup this query to run first:
So, I run the second query listed here first, then I run the first query. That sped up that process by HEAPS. To me, it seems that this may be the fastest method, but I wanted to ask around here.
Would it be more efficient to run both queries in one, since they are both deleting records from "tblAll"?
The reason I'm thinking that the "null" deletion query being run first is fastest is that there at LOTS of empty records in that table, each time it is filled. Sadly, it's b/c of the way the original data is formatted.
Any thoughts/suggestions on this?
--
"If to err is human, then I must be some kind of human!" -Me
In that thread, we ended up with the code:
Code:
Delete [TA].[*]
FROM [tblAll] AS TA
WHERE ([TA].[Case Number] IN (SELECT [HD].[Case Number]
FROM [tblHist_Data] AS HD
WHERE ([TA].[Date] = [HD].[Date])));
Well, I realized that it would be best to first get rid of the duplicates in the same table, so I setup this query to run first:
Code:
DELETE [tblAll].*
FROM [tblAll]
WHERE [tblAll].[Case Number] Is Null
So, I run the second query listed here first, then I run the first query. That sped up that process by HEAPS. To me, it seems that this may be the fastest method, but I wanted to ask around here.
Would it be more efficient to run both queries in one, since they are both deleting records from "tblAll"?
The reason I'm thinking that the "null" deletion query being run first is fastest is that there at LOTS of empty records in that table, each time it is filled. Sadly, it's b/c of the way the original data is formatted.
Any thoughts/suggestions on this?
--
"If to err is human, then I must be some kind of human!" -Me