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!

Column Alias In Group By / Having

Status
Not open for further replies.

Sridharan

Technical User
Dec 3, 2001
523
IN
Hello All,

Is it possible to use the column alias given in the select clause in Group By / Having clause. When I try to give that it is giving an error. But have worked on that in other RDBMS like Teradata. Is it somewhat possible to achieve???

Example:
--------
select
col1 as col1alias
from
table1
group by
col1alias

Thanks
Sridharan
 
It is not possible in oracle.
It's good feature which is also supported by sql server.

regards

sunil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top