Home » RDBMS Server » Server Administration » nested queries
nested queries [message #372529] Tue, 20 February 2001 06:21 Go to next message
sean talbot
Messages: 1
Registered: February 2001
Junior Member
Hi I want to run a 'nested query' in oracle, but cant get the syntax right can anybody help?
My query looks something like this
select (criteria) from
[[select (criteria) (from (tables) where (conditions)]] where (conditions)

In other word a select query based on the results of another select query
Re: nested queries [message #372547 is a reply to message #372529] Wed, 21 February 2001 11:56 Go to previous message
LB
Messages: 13
Registered: September 2000
Junior Member
Select col1, col2
from (select col1, col2 from table1 where....)
where conditions;

The above should work.
Previous Topic: utl_file can't be used
Next Topic: 'Enter' pressed in textarea
Goto Forum:
  


Current Time: Sat May 18 05:47:09 CDT 2024