Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select in a From Clause

Status
Not open for further replies.

kmericle

IS-IT--Management
May 14, 2003
1
US
Hello all...

In MSSQL I can run the follwoing query, however I cannot in Sybase SQL. Is this prohibited in Sybase? Is there an equivilant anyone can think of?

select column1 from (select column1 from table) t1

Thank you...
 
Give us more info on what do you want to do?
Lets try to find an equivalent.

David.
 
hi

Is this what you want?

select column1 from t1
where column1 in (select column1 from table)

lou

 
This is a simple example of an inline view.

It is part of the ANSI standard but is not yet supported by Sybase ASE. Oracle supports it.

e.g.
Code:
select count(*)
from (select product,sum(profit) as total_profit
      from sales
      group by product )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top