Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with a Date Query

Status
Not open for further replies.

Ed75

MIS
Joined
Sep 29, 2004
Messages
27
Location
US
I need to select everything from a table between two dates but only need one result per person.

I can use SSN to identify an individual.

Help me out please, this is not something i'm used to..

Thanks
 
does this work for you?

Select SSN, Max(mydate)
from mytable
Where mydate between date1 and date2
group by SSN

-DNG
 
That should work fine, thanks very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top