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
What are the ways tablespaces can be managed and how do they differ?
What is set operator oracle?
What is the order of defining local variables and sub procedures/functions?
What privilege is needed for a user to create views in oracle?
What is connection pool in oracle?
How do I spool to a csv formatted file using sqlplus?
What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.
What is Trigger in Oracle?
How to bring a tablespace offline?
What is a procedure in oracle?
Why is oracle so popular?
How to see the table columns used in an index?
What is set verify off in oracle?
What is the sid in oracle?
How to use "out" parameter properly?