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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table alias and pivot function

Status
Not open for further replies.

bubu2006

MIS
May 2, 2006
157
US
can I write following SQL

SELECT *
FROM emp e
PIVOT (e.SUM(sal)
FOR e.deptno IN (10,20,30,40));

I am using Oracle 11G.
 
BuBu,

What happened when you tried it?

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
“Beware of those that seek to protect you from harm or risk. The cost will be your freedoms and your liberty.”
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top