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 -> Using a Select as a Var??

Using a Select as a Var??

From: valigula <valigula_at_gmail.com>
Date: Thu, 05 Jul 2007 08:50:51 -0700
Message-ID: <1183650651.492734.238430@q69g2000hsb.googlegroups.com>


Hi All
Need top repeat a select 3 times but with differents where condition. I tried to repeat the selects and after use a couple of union to join then, but it takes toooo long.

I also remember there was a way such as:

using var (select stamment)
select *
from var
where .....

but i can not remember the exact syntaxes.

Does anybody know?.

Thanks. Received on Thu Jul 05 2007 - 10:50:51 CDT

Original text of this message

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