Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Select with "not in" - Crystal XI Post Reply Post New Topic
Author Message
Alberto Mattos
Newbie
Newbie


Joined: 23 Sep 2014
Online Status: Offline
Posts: 2
Quote Alberto Mattos Replybullet Topic: Select with "not in" - Crystal XI
    Posted: 25 Sep 2014 at 3:50am
I need to show all dates from table1 that not exists on table2.

The select is:

select * from table1 where column1 not in (select column1 from table2)

But I can't do this on Crystal Reports XI.

When I try on PL/SQL, my select works perfectly. My database is Oracle.
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 25 Sep 2014 at 3:59am

In Crystal Add Table1 and Table2, change to a left outer join from Table1 to Table2 on column1

 
in select expert type isnull({table2.column1})
IP IP Logged
Alberto Mattos
Newbie
Newbie


Joined: 23 Sep 2014
Online Status: Offline
Posts: 2
Quote Alberto Mattos Replybullet Posted: 25 Sep 2014 at 5:51am
Thanx. It works very well.
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.047 seconds.