dbTalk Databases Forums  

Including null values in a discoverer query

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Including null values in a discoverer query in the comp.databases.oracle.tools forum.



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

Default Including null values in a discoverer query - 10-10-2007 , 09:50 AM






A complete noob question, I'm sure, but any help appreciated.

I need a query to return an individuals ID number, with four fields of
details on them
Not all of the ID numbers have a corresponding entry in all the four
fields. So when I set up my query to bring in the first field it
excludes those that are blank, then if I add the second field it
excludes blanks again - including removing the entries that have a
value in the first column, but are null in the second.

So, by the time I've set up the worksheet with all four detail
columns, I have lost about 95% of the records, as those that have a
null in any of the four fields are removed.

How do I set up the query to include null values?

Thanks


Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: Including null values in a discoverer query - 10-10-2007 , 09:38 PM






La Bealtaine wrote:
Quote:
A complete noob question, I'm sure, but any help appreciated.

I need a query to return an individuals ID number, with four fields of
details on them
Not all of the ID numbers have a corresponding entry in all the four
fields. So when I set up my query to bring in the first field it
excludes those that are blank, then if I add the second field it
excludes blanks again - including removing the entries that have a
value in the first column, but are null in the second.

So, by the time I've set up the worksheet with all four detail
columns, I have lost about 95% of the records, as those that have a
null in any of the four fields are removed.

How do I set up the query to include null values?

Thanks
I don't know how you set it up to exclude them.

SELECT *
FROM <table>;

Returns all records without regard to what is or is not null.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #3  
Old   
pamela fluente
 
Posts: n/a

Default Re: Including null values in a discoverer query - 10-19-2007 , 06:18 AM



On 10 Ott, 16:50, La Bealtaine <73cent... (AT) gmail (DOT) com> wrote:
Quote:
A complete noob question, I'm sure, but any help appreciated.

I need a query to return an individuals ID number, with four fields of
details on them
Not all of the ID numbers have a corresponding entry in all the four
fields. So when I set up my query to bring in the first field it
excludes those that are blank, then if I add the second field it
excludes blanks again - including removing the entries that have a
value in the first column, but are null in the second.

So, by the time I've set up the worksheet with all four detail
columns, I have lost about 95% of the records, as those that have a
null in any of the four fields are removed.

How do I set up the query to include null values?

Thanks
How many tables are you working with? Provide a description of them.
Are you doing a join, a self join or what ? Provide your SQL.

-P



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.