Viewing 7 posts - 1 through 7 (of 7 total)
In going through the code I realized that the code was still not quite right. Now the code pulls all rows where the ONLY status is 'Not Processed'. If there...
July 16, 2010 at 2:35 pm
That did it. Now I have to dissect the code and figure out how it works.
July 9, 2010 at 8:52 am
No, because that doesn't look at the most recent entry for each order. It still returns most orders instead of just the ones that have "not processed" as the most...
July 9, 2010 at 7:16 am
No, all records where the most recent record is not processed. The results should only have included 37,38,41.
July 9, 2010 at 6:32 am
Any other ideas?
July 8, 2010 at 3:33 pm
Okay, I was wrong. That query pulls any order that has ever had a status of 'Not processed'.
July 7, 2010 at 9:53 am
--===== If the test table already exists, drop it
IF OBJECT_ID('TempDB..#orders','U') IS NOT NULL
DROP TABLE #orders
--===== Create...
July 7, 2010 at 8:43 am
Viewing 7 posts - 1 through 7 (of 7 total)