Click here to Skip to main content
15,893,923 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have scenario like

User | Session | Response
_________________________
 u1  |   s1    |    r1
_________________________
 u1  |   s1    |    r2
_________________________
 u1  |   s2    |    r3
_________________________
 u2  |   s2    |    r4
_________________________
 u2  |   s2    |    r5

AND the Output needs to be Like

OUT PUT Table
________________

User  | Session  | response1  | response2  | Session.....n
________________________________________
u1    |  s1      |   r1       |  r2       
________________________________________
u1    |  s2      |   r3       |  NULL   
________________________________________
u2    |  s2      |   r4       |  r5      

That Session column may be n time depending upon number responses.

Waiting For response
Thanks in Advance

[edit]text block added[/edit]
Posted
Updated 14-Nov-12 6:36am
v5
Comments
joshrduncan2012 14-Nov-12 11:44am    
How is your output developed? We can't help until we see how you have it developed so far.
anil.luck 14-Nov-12 12:41pm    
Need to write script which will develop a table like OUT PUT table

1 solution

That's called 'pivot table[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900