I have a set of data listing Employee SSN, Employee Name, Dependent SSN, Dependent Name.
There is a separate row for each dependent an employee has.
I need to identify each duplicate Employee SSN and put all Dependent information in just one row.
Example:
The tables I am using are set up in this manner.
Employee SSN l Employee Name l Dependent SSN l Dependent Name
123456789 l John Smith l 456456456 l Jane Smith
123456789 l John Smith l 789789789 l Greg Smith
I need to know how to set up a query that will give the following results:
Employee SSN l Employee Name l Dependent1 SSN l Dependent1 Name l Dependent2 SSN l Dependent2 Name
123456789 l John Smith l 456456456 l Jane Smith l 789789789 l Greg Smith
Thanks.