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

Home -> Community -> Usenet -> c.d.o.server -> calc field

calc field

From: Roger Smith <rsmith22_at_fastmail.net>
Date: Tue, 30 Sep 2003 20:01:04 GMT
Message-ID: <4ileb.35770$H86.839814@news1.telusplanet.net>


Need suggestions on how to accomplish this, I know you can create a calculated field in sql:

select (productPrice * 1.5) as "NewPrice"

but my calc field is complicated by if then, if productPrice not null then

select (productPrice * 1.5) as "NewPrice" else

select (WarehousePrice * 1.5) as "NewPrice"

and so on... can this be done in sql?

Roger Received on Tue Sep 30 2003 - 15:01:04 CDT

Original text of this message

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