Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Excluding One List from Another Post Reply Post New Topic
Author Message
Jonathans
Newbie
Newbie


Joined: 03 May 2011
Location: Canada
Online Status: Offline
Posts: 1
Quote Jonathans Replybullet Topic: Excluding One List from Another
    Posted: 03 May 2011 at 6:00am
I have a list of 8000 items. Within that list there are 250 entries that I want to exclude, which are contained on a separate Excel file that I can link too.

How do I report the 8000 minus the 250 without having to manually put in each of the 250 into the "is not one of" option of the Selection Expert?

Thanks
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 04 May 2011 at 3:48am
select tablea.fieldx from tablea left join tableb on tablea.fieldx = tableb.fieldy where tableb.fieldx is null
 
tablea has 8000 records, tableb has 250, fieldx and fieldy are the fields that have the values you want to select/omit.
 
HTH
 
ps this would be done through a command object


Edited by lockwelle - 04 May 2011 at 3:48am
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.016 seconds.