Earlier Date

G

Guest

Hi, I have a table as following:

Name Date of Service
MMM 01/05/05
MMM 02/12/05
MMM 03/07/05
VVVV 10/20/05
VVVV 11/01/05

I just want to select the earliest date, for example: 01/05/05 for MMM and
10/20/05 for VVVVV. Please help me to write a query for this. Many Thanks.
 
V

Vincent Johns

This should do it:

SQL:

SELECT Service.Name,
Min(Service.[Date of Service]) AS Earliest
FROM Service
GROUP BY Service.Name;

Query Datasheet View:

Name Earliest
---- ----------
MMM 1/5/2005
VVVV 10/20/2005

-- Vincent Johns <[email protected]>
Please feel free to quote anything I say here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top