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: Gunter Herrmann <notformail0405_at_comcast.net>
Date: Thu, 02 Jun 2005 17:02:55 -0400
Message-ID: <429f7400$0$14746$9b4e6d93@newsread4.arcor-online.net>


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

-- 
Gunter Herrmann
Naples, Florida, USA
Received on Thu Jun 02 2005 - 16:02:55 CDT

Original text of this message

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