Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Show multiple records in 1 row Post Reply Post New Topic
Author Message
Dat120Y
Newbie
Newbie
Avatar

Joined: 25 Apr 2012
Location: Australia
Online Status: Offline
Posts: 1
Quote Dat120Y Replybullet Topic: Show multiple records in 1 row
     Posted: 25 Apr 2012 at 6:18pm
Hi,
 
I've created an inner join (CR X1) that produces multiple records for each Id;
 
Id   type   typedescription
1     a        blue
1     b        green
2     a        yellow
2     b        orange
2     c         pink
3     a        blue
3     b        orange
 
How do I get the data for each Id to show in 1 row in the report?
 
Id   type a   type b    type c   
1     blue      green      
2     yellow   orange   pink
3     blue      orange
 
Thank you.
IP IP Logged
Mayur56
Newbie
Newbie


Joined: 26 Apr 2012
Online Status: Offline
Posts: 1
Quote Mayur56 Replybullet Posted: 26 Apr 2012 at 2:15am
Hi,
If u can write query for it then it can be done in sql using pivot.
hope it will help u
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 26 Apr 2012 at 3:55am
you could also use a crosstab in crystal
or a set or Running totals (or variable formulas) to be displayed in a group footer (hiding the detail section)


Edited by DBlank - 26 Apr 2012 at 3:55am
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum