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
How to assign a tablespace to a users in oracle?
What is user managed backup in Oracle?
What is the best way to do multi-row insert in oracle?
How do I use os authentication with weblogic jdriver for oracle and connection pools?
What are the attributes of cursor?
Can a parameter be passed to a cursor?
How many types of cluster table in Oracle?
How can I combine multiple rows into a comma-delimited list in oracle?
Differentiate between post-database commit and post-form commit?
Explain self joins in oracle?
I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?
How to update values on multiple rows in oracle?
How to build data dictionary view an new database?
How to create a new view in oracle?
material view and view disadvantages?