Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Flowing Fount of Yak Knowledge
Select p.name, c.name, r.name
Select p.name, c.name, r.name,ROW_NUMBER() OVER (PARTITION BY P.Name Order by r.date desc) as Seq
from Persons p
inner join Childs c on p.id = c.parentid
inner join Cars r on p.id = r.ownerid
Where T.Seq <=4