Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Constrainting NUMBER

Re: Constrainting NUMBER

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 02 Jun 2005 15:35:56 -0700
Message-ID: <1117751630.227120@yasure>


Gunter Herrmann wrote:
> Hi!
>
> DA Morgan wrote:
>

>> Lets say the column holds person's ages. Is there any value in
>> NUMBER(4)?

>
>
> Storing an age in a column is a very stupid idea. Do you really
> want to run a batch job at midnight updating the age from the
> birthday? When is midnight if your application is accessed from
> different time zones?
>
> OTOH NUMBER(4) should work pretty well for trees ...
>
>> How about money? Is there any value in allowing more
>> than two decimal points? ...

>
>
> There is one currency with 3 decimals (somewhere in the ME region).
> Most currencies have 2 decimals, the number of currencies with
> 0 decimals have decreased within the last few years (e.g Italy, Poland).
> Or think of the old UK system with Shillings ...
>
> If you create an application that does not work in some tiny
> little kingdom on the Persian Gulf you might think: Just forget
> about this 0.0x % of the world.
> But all the large international businesses with subsidiaries over
> there will tell you to get lost if it does not work everywhere.
>
> brgds

All true but the point remains. You wouldn't define a currency column as FLOAT(126): Ever!

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Thu Jun 02 2005 - 17:35:56 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US