Click here to Skip to main content
13,050,237 members (125,921 online)
Rate this:
Please Sign up or sign in to 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


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 14-Nov-12 4:39am
Updated 14-Nov-12 6:36am
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

That's called 'pivot table[^].

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 15 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100