My problem would be something like this. Here, basically I have a table as below:
CustId Question Answer
------------------------
1000 AAAA 1
1000 BBBB 2
1000 CCCC 3
1001 AAAA 2
1001 BBBB 3
1001 CCCC 3
I need to come out with this layout from this table:
CustID AAAA BBBB CCCC
------------------------
1000 1 2 3
1001 2 3 3
Note: The question could be of any content and number of question could be more. How could I do that with Store Proc?
Pls help. Thanks.
CustId Question Answer
------------------------
1000 AAAA 1
1000 BBBB 2
1000 CCCC 3
1001 AAAA 2
1001 BBBB 3
1001 CCCC 3
I need to come out with this layout from this table:
CustID AAAA BBBB CCCC
------------------------
1000 1 2 3
1001 2 3 3
Note: The question could be of any content and number of question could be more. How could I do that with Store Proc?
Pls help. Thanks.
Comment