This is works if you have MORE than just NAME in your source table
select *
from MyTable m
inner join ( select name, max([created]) as maxdate
from MyTable
group by name ) as x
on m.name= x.name
and m.[created] = x.maxdate )
Jay
Main Topics
Browse All Topics





by: DexstarPosted on 2004-08-20 at 12:23:57ID: 11854996
red27man:
> i need to select unique values based on date(the recent date)
Try this:
SELECT Name, MAX(Created) FROM YourTable GROUP BY Name
Hope That Helps,
Dex*