Re: select query misbehaving?
2005-02-23 08:03:06
Thanks, that clears it up.
Matt.
_-'-_
-|-
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Jurjen Oskam
Sent: Wednesday, February 23, 2005 12:23 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: select query misbehaving?
On Wed, Feb 23, 2005 at 12:02:32PM -0000, Warren, Matthew (Retail)
wrote:
> Ok, I can do that. But, surely NULL != 'VAULT' is not like '%VAULT%' ?
SQL has three valued logic: TRUE, FALSE and UNKNOWN (or NULL):
tsm: SERVER1>select count(*) from volumes
108
tsm: SERVER1>select count(*) from volumes where pct_reclaim = 0.0
36
tsm: SERVER1>select count(*) from volumes where pct_reclaim != 0.0
53
tsm: SERVER1>select count(*) from volumes where pct_reclaim is null
19
tsm: SERVER1>select count(*) from volumes where pct_reclaim is not null
90
--
Jurjen Oskam
"E-mail has just erupted like a weed, and instead of considering
what to say when they write, people now just let thoughts drool
out onto the screen." - R. Craig Hogan
___________________________ Disclaimer Notice __________________________
This message and any attachments are confidential and should only be read by
those to whom they are addressed. If you are not the intended recipient, please
contact us, delete the message from your computer and destroy any copies. Any
distribution or copying without our prior permission is prohibited.
Internet communications are not always secure and therefore Powergen Retail
Limited does not accept legal responsibility for this message. The recipient is
responsible for verifying its authenticity before acting on the contents. Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Powergen Retail Limited.
Registered addresses:
Powergen Retail Limited, Westwood Way, Westwood Business Park, Coventry, CV4
8LG.
Registered in England and Wales No: 3407430
Telephone +44 (0) 2476 42 4000
Fax +44 (0) 2476 42 5432
|
|
|