Ann Cao (4/7/2010)
Thanks,but I still get multiple records for each person.
I only want the first records
Based on your original query you would expect to get multiple rows per person if they have been in/assigned to more than 1 building. If you want only 1 row per person then you would need to eliminate [building desc] from the Group By/Partition By.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question