SanAntonioSpurFan
Instructor
I have a table called RawData that contains the following fields and data looks like this:
UPC, Item Code, Last Scan Date
500,001,4/19/2004
501,001,3/2/2002
200,0,4/18/2004
300,0,4/18/2004
I want to build a update query that will look for duplicates on Item Code if Item Code is greater than zero. If it finds any, I want the query to look at Last Scan Date and pick the Max value and then update the field UPC with the correct UPC or highest Last Scan Date UPC. Need to ignore if Item Code equals Zero since the table will contain many zero with different upc's.
So the results should update the field UPC for the second record about from 501 to 500 and that's it. Nothing else..
UPC, Item Code, Last Scan Date
500,001,4/19/2004
501,001,3/2/2002
200,0,4/18/2004
300,0,4/18/2004
I want to build a update query that will look for duplicates on Item Code if Item Code is greater than zero. If it finds any, I want the query to look at Last Scan Date and pick the Max value and then update the field UPC with the correct UPC or highest Last Scan Date UPC. Need to ignore if Item Code equals Zero since the table will contain many zero with different upc's.
So the results should update the field UPC for the second record about from 501 to 500 and that's it. Nothing else..