Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Question about NULL Post Reply Post New Topic
Author Message
colman1212
Newbie
Newbie


Joined: 08 Jul 2010
Location: Ireland
Online Status: Offline
Posts: 36
Quote colman1212 Replybullet Topic: Question about NULL
    Posted: 20 Jul 2010 at 6:12am
OK so I'm running a report against a table based on the status field.
I want to return all rows where the status field is not DISABLED or DISPOSED.
 
The problem is that I thought this would also bring back all rows where the status field is NULL, however it doesn't. I think that this gives me a misleading view of the data. Is there an option somehwhere in crystal so that this data will also be returned?
 
Any help will be much appreciated!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Jul 2010 at 6:27am

you can tell the formula (or the whole report) to use default values for NULLs

or
in your select statement you can nccount for this by including the isNULL as your first condition
isnull(table.field) or NOT (table.field in ['DISABLED','DISPOSED'])


Edited by DBlank - 20 Jul 2010 at 7:11am
IP IP Logged
colman1212
Newbie
Newbie


Joined: 08 Jul 2010
Location: Ireland
Online Status: Offline
Posts: 36
Quote colman1212 Replybullet Posted: 21 Jul 2010 at 12:22am
Originally posted by DBlank

you can tell the formula (or the whole report) to use default values for NULLs

or
in your select statement you can nccount for this by including the isNULL as your first condition
isnull(table.field) or NOT (table.field in ['DISABLED','DISPOSED'])
 
Great, Thank you, much appreciated
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.