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

Answer Posted / vipul

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a synonym? What are its various types?

622


How to use "if" statements on multiple conditions?

721


What is a system tablespace and when it is created?

560


What are the differences between char and varchar2 in oracle?

563


Which is better Oracle or MS SQL? Why?

3974






How to start your 10g xe server from command line?

548


How do we get field details of a table?

549


Explain integrity constraint?

644


How to list all indexes in your schema?

582


What is format trigger?

1616


What is Redo Log Buffer in Oracle?

632


What would you do with an in-doubt distributed transaction?

1468


What are the restrictions on external table columns?

551


What are the attributes of cursor?

589


Explain the use of record length option in exp command.

560