Hi, I have one table called MVPR and want to extract from it the part number and suppliers for that part. I want the layout to be :
Part No Supplier1 Supplier2 Supplier3
a1234 41758 41963 42531
However the data is in this form:
Part No Supplier
a1234 41758
a1234 41963
a1234 42531
The data i want has a prefix field as the selection criteria for this is "c".
I need to pivot the data around to get this layout but have no idea how to do it. I know there is a pivot statement in SQL but i'm only just starting down the SQL road and could do with the answer to this one a bit quicker than my learning curve allows....
Thanks for any help
Part No Supplier1 Supplier2 Supplier3
a1234 41758 41963 42531
However the data is in this form:
Part No Supplier
a1234 41758
a1234 41963
a1234 42531
The data i want has a prefix field as the selection criteria for this is "c".
I need to pivot the data around to get this layout but have no idea how to do it. I know there is a pivot statement in SQL but i'm only just starting down the SQL road and could do with the answer to this one a bit quicker than my learning curve allows....
Thanks for any help