I would like to write a query that transposes the rows as columns such as below:
Changes this:
InvNo Product Amount
1003 Apple 10
1003 Orange 20
1003 Banana 5
1004 Apple 4
1004 Orange 3
1005 Orange 4
and presents it like this:
InvNo Apple Orange Banana
1003 10 20 5
1004 4 3 0
1005 0 4 0
Thanks