Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Weird Query
AK schrieb:
> Maxim,
> let's suppose I was wondering how much money I have on my checking
> account.
> 1. I didn't know, that's NULL.
> 2. I went to an ATM and run a query, Let's suppose I've got $100
> 3. I'd withdrawn $100 from the account and my receipt said I had $0.00
> remaining balance.
>
I can't follow. It seems to me , you try to compare apples and oranges.
If you don't know about actually stored value, it doesn't mean there is
no value stored. (back to Oracle - NULL and 0(Zero) differ)
> Don't tell me that after step 3 account_balance "has no value" - it
> does! The value IS known - $0.00. There is a big difference between a
> known zero value and an unknown value.
See above
>
> Similarly, there is a big *practical* difference between a known zero
> length string and an unknown string. I have given you a very simple
> real life example when it is important.
>
>
>>>to be able to
There is nothing to discuss about. You must choose right tool for your
needs. If the ability "natively" to distinguish between NULL and empty
string is of big value for your business needs, you should look on the
engines that support it. As in Oracle you can not ( without additional
attributes ) distinguish between NULL and empty string, you should not
use Oracle. The equity of NULL and empty string in Oracle was accepted
by design of this rdbms. Complain about it doesn't make any sense. You
can do in Oracle really a lot of things with as little efforts as
possible, but it doesn't exclude the possibility that some other engines
make some things easier...
Also while i don't really see the business need to distinguish NULL and
'', i am very comfortable with Oracle - if you asked me for my opinion...
And please, don't start the next religious war...
Best regards
Maxim Received on Mon Aug 01 2005 - 16:48:59 CDT