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: Computing on column and where?

Re: Computing on column and where?

From: Michel Cadot <micadot_at_netcourrier.com>
Date: Tue, 7 Mar 2000 17:24:57 +0100
Message-ID: <8a3ah8$206a$1@news5.isdnet.net>


There are several solutions depending on the following issues:

- is the sub-select returning one row or several rows?
- is "otherClause" depending on mainTable columns?
- is "value" in the where clause depending on otherTable columns?
- is "value" depending on the returning rows of the sub-select?
- ...

Can you tell us more.

--
Michel

Kurt Byrnes <kdb_at_espotmarket.com> a écrit dans le message : 38C511E9.7E69654F_at_espotmarket.com...
> Hello,
>
> I am having difficulty with the following scenario:
> select a, b, (c + (select otherColumn from otherTable where otherClause)
> from mainTable where 3 >= value order by 3
>
> Basically, I want to perform some calculation on a column of a table,
> use the computed value in the where clause, and return the computed
> value.
>
> Any ideas?
>
> Thanks in advance,
>
> Kurt
>
Received on Tue Mar 07 2000 - 10:24:57 CST

Original text of this message

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