I know MySQL has limit command, but I don't know what command should I use in SQL server 2008?
I need select clientId and last day of each pickup, most of the clients have multiple pickups (65 000 + records in pickup table).
select P.ClientID,LastName+' '+FirsName as Name , Adress,p.PickupDate
from Pickup P,Clients C
where P.ClientID= C.ClientID
order by PickupDate desc limit 1
throwing error *Msg 102, Level 15, State 1, Line 4
Incorrect syntax near 'limit'.*
because **LIMIT** is not key word in SQL server