Click here to Skip to main content
14,575,900 members
Rate this:
Please Sign up or sign in to vote.
See more:
table structure
int id,
varcahr(50) name,
dob datetime


i want to pick only that record contains maximum dob


Thanks :) in advance ...
Posted
Comments
devildx2050 14-Oct-11 6:30am
   
I got answer ... :)

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

select *  from tablename where DateOfBirth=(Select max(DateOfBirth) from tablename)
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100