Microsoft
Software
Hardware
Network
Question : Retrieve most current records
I have an Access Table with 13 fields. They are named Field1, Field2, Field3, etc.
Field6 contains customer numbers. The same customer number can appear multiple times throughout the table. Field10 contains an update date. It contains the most recent date that there was an update to a given customer number. I want to retrieve the most recent records for each customer number. I want to wind up with only one record per customer number, so if there were multiple updates to a customer number on the most recent date, only return one record for that customer number. I want all 13 fields to be returned.
Thanks
Answer : Retrieve most current records
Sorry:
SELECT a.* FROM myTable a WHERE a.Field10 = (SELECT Max(b.Field10) FROM myTable b WHERE b.Field6 = a.Field6)
ORDER BY Field6;
Random Solutions
VBA Powerpoint 2003/2007 - Align text inside a textbox/Shape
How to troubleshoot a Windows 7 memory leak?
IIS generates 500 Internal Server Error when using PHP to connect to MySQL
using VCOPY
error 429 ActiveX component can't create object
ISA Vs Squid Proxy
How would I extract one of each number in an excel column that contains many copies of hundreds of numbers?
reuse code ,forms from other database without copy
How do I reduce the memory iexplore.exe is using, as it can get as high as 260,000k
How to limit rows a user sees after logging to an APEX application