Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to convert (multiple) rows output to multiple (columns)

631816Dec 25 2008 — edited Dec 26 2008

Hii


I have wierd query. But not sure of how to get result out of it!!!


My query returns two rows for a query that i have posed.



Current Result
10
20

Expected Result

10 20

My problem here is i wanted the above two values to be stored in two variables in a single select statement.



If i use a cursor my problem will be solved.But i am not much intrested to use a cursor for a simple select statement.



is there any possibilty that i can convert the output of two rows to two columns??



I am using Oracle Release 10.1.0.2.0



Operating system Windows Xp.



People here will not appreciate the tags "Urgent". I know that :-(.



But some how i am forced to use this tag "urgent". Sorry for that.



If no answers i will in other way have to go to cursor :-(



Any help will be appreciated.



Thanks,
Pavan

This post has been answered by Solomon Yakobson on Dec 25 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 23 2009
Added on Dec 25 2008
11 comments
3,365 views