Writing a query to find 'Last Audit Date'

t3nchi

Registered User.
Local time
Today, 17:12
Joined
Sep 28, 2005
Messages
79
How do I write a query to find the last audit date?

Let's say the table looks like this (year,company,audit date):

2004, Company1, 6/3/2004
2005, Company2, 2/2/2005
2006, Company3, 3/7/2006
2008, Company4, 3/2/2008

Let's say I want to add a new record (in the year 2010) and pull up the last audit date. How do I do that?
 
Use the Group By in your query and max on the date field.
 
Thanks Murli.
 

Users who are viewing this thread

Back
Top Bottom