vipul


{ City } mahuva
< Country > india
* Profession * it-executive
User No # 75387
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 3
Questions / { vipul }
Questions Answers Category Views Company eMail




Answers / { vipul }

Question { 6463 }

ex. one table is having 1 column with 10 records ,
then how to display all the values in row wise ?


Answer

column can be convert in row by using PIVOT function in ORACLE

for eg:

SELECT * FROM(SELECT VMENUNAME,NMENUNO FROM MENU_MASTER) A
PIVOT(MAX(VMENUNAME) FOR NMENUNO IN (6,7,8,9,10,11,1)) PVT

Is This Answer Correct ?    0 Yes 3 No