• 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.