Hi,
I need to be able to pull data from two rows of the same table into one row i.e.
CONTRACT_NO;PERSON_NO
100;12345
100;12346
101;65432
101;65431
into
CONTRACT_NO;PERSON1_NO;PERSON2_NO
100;12345;12346
101;65432;65431
I know it goes against everything relational databases stand for but we are converting one system to another with an entirely different format. I could write a macro in Excel but can it be done with SQL?
Thanks for any help
Dan Watts
I need to be able to pull data from two rows of the same table into one row i.e.
CONTRACT_NO;PERSON_NO
100;12345
100;12346
101;65432
101;65431
into
CONTRACT_NO;PERSON1_NO;PERSON2_NO
100;12345;12346
101;65432;65431
I know it goes against everything relational databases stand for but we are converting one system to another with an entirely different format. I could write a macro in Excel but can it be done with SQL?
Thanks for any help
Dan Watts