Use AdventureWorks go select ct.Name ,row_number() over (partition by vc.ContactTypeID order by vc.ContactTypeID) ,LastName + ' , ' + FirstName as Person from Purchasing.VendorContact vc inner join Person.ContactType ct on ct.ContactTypeID = vc.ContactTypeID inner join Person.Contact c on c.ContactID = vc.ContactID
No comments:
Post a Comment