Query for Oldest and Youngest Member

  • Thread starter Thread starter Mike D
  • Start date Start date
M

Mike D

I am trying to get a query to return the oldest member and youngest member in
our database based on birthdate.
 
The SQL statement for the query would look like:

SELECT Members.*
FROM Members
WHERE Members.DOB = (SELECT Max(DOB) FROM Members)
OR Members.DOB = (SELECT Min(DOB) FROM Members)


John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
 

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

Back
Top