dbTalk Databases Forums  

SQL - Select and filtering whereby a date is not null.

comp.databases.oracle comp.databases.oracle


Discuss SQL - Select and filtering whereby a date is not null. in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kal
 
Posts: n/a

Default SQL - Select and filtering whereby a date is not null. - 03-22-2005 , 08:54 AM






I have a particular problem:

I am working at a client site where they have the following oracle
system:

Oracle7 Server Release 7.3.3.0.0 - Production Release
PL/SQL Release 2.3.3.0.0 - Production

I am trying to select Person_id's filtering by where a date is not
null see below:

SELECT Per_Id, Per_First_Names, Per_Surname
FROM Oss_Relationships, Oss_Persons
WHERE Rel_Source_Per_Gro_Id = Per_Id AND Rel_Rty_Code = 'CTE' AND
Rel_End_Date IS NOT NULL;

I have conducted a few tests and the above query is still pulling
people data with a null S.Rel_End_Date when it should not.

I have found a workaround using a nested SELECT but this not efficient
and sometimes cause SQL* to freeze and crash.

Any help would be appreciated. p.s. I am a relative newbie to oracle
so forgive my inexperience.

Regards,

Kal

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.