Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Conditional Details Post Reply Post New Topic
Author Message
brosbury
Newbie
Newbie


Joined: 03 Jun 2014
Location: United States
Online Status: Offline
Posts: 2
Quote brosbury Replybullet Topic: Conditional Details
     Posted: 04 Jun 2014 at 5:06am
I have a single demographic data table with SSN and typical other data such as name, street, phone, etc.
 
I would like to loop through the table, identifying any duplicates ( 2 or more) on SSN, and then only list out the demographic data for the duplicates.  In other words, I don' t want to list any data where there is no duplicate on ssn.
 
What is the best design for this?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 04 Jun 2014 at 7:39am

either join the table to an alias of itself on SSN and the PK<> PK

 
or in crystal group on SSN and do a count on SSN at the group and then do a group select where count(SSN,SSN)>1
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