Hi,
I was just wondering if someone could help me out...I can't get by this roadblock.
This is a sample of my source data:
(Note this is just a sample..my real data has like thousands & thousands of records to work with)
AccntNum OrderNum Param ParamValue
-------- -------- ----- ----------
10000 10001 Cable 7894/AXV
10000 10001 Pair 4466
10000 10002 Cable 7987/VXV
10000 10002 Pair 8899
10050 10051 Pair 8855
10050 10051 Cable 4878/BXV
Now what I'm trying to do is achieve a Transform/Pivot type dataset (like ms access crosstab) but here's the trick, I can't use stored proc or create table...i can only use select sql statement, is this even possible?...I heard that you can use the DECODE function to do something similar, but I'm out to lunch when it comes to the DECODE function
Anyways, if anyone can help i'm trying to get the dataset above to look like this below.
AccntNum OrderNum Cable Pair
-------- -------- ----- ----
10000 10001 7894/AXV 4466
10000 10002 7987/VXV 8899
10050 10051 4878/BXV 8855
Thank you in advance,
I was just wondering if someone could help me out...I can't get by this roadblock.
This is a sample of my source data:
(Note this is just a sample..my real data has like thousands & thousands of records to work with)
AccntNum OrderNum Param ParamValue
-------- -------- ----- ----------
10000 10001 Cable 7894/AXV
10000 10001 Pair 4466
10000 10002 Cable 7987/VXV
10000 10002 Pair 8899
10050 10051 Pair 8855
10050 10051 Cable 4878/BXV
Now what I'm trying to do is achieve a Transform/Pivot type dataset (like ms access crosstab) but here's the trick, I can't use stored proc or create table...i can only use select sql statement, is this even possible?...I heard that you can use the DECODE function to do something similar, but I'm out to lunch when it comes to the DECODE function
Anyways, if anyone can help i'm trying to get the dataset above to look like this below.
AccntNum OrderNum Cable Pair
-------- -------- ----- ----
10000 10001 7894/AXV 4466
10000 10002 7987/VXV 8899
10050 10051 4878/BXV 8855
Thank you in advance,