. have a tablle like this: cust acc ----------- a 1 b 2 b 3 c 4 c 5 c 6 I Want below o/p: cust acc --------------- a 1 b 2|3 c 4|5|6 Please any one can you have any ideas share me. I have urgent requirement.
CUST ACC
a dv
b fg
b bh
c mk
c cl
c so
result:-
A B c
dv fg mk
bh cl
so
Answer Posted / barun
select decode(cust,'a',acc) as A ,decode(cust,'b',acc) as B,decode(cust,'c',acc) AS C from customer
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is orm in sql?
what is cross join? : Sql dba
What are the three forms of normalization?
How to process query result in pl/sql?
What is basic structure of pl sql?
How to start the command-line sql*plus?
What does pl sql stand for?
what is cursor and its type, what is ref cursor write a syntax to pass ref cursor into procedure out fucntion and call the procedure
What can I use instead of union in sql?
how to drop an existing view in mysql? : Sql dba
What are the types of records?
What is the maximum number of rows in sql table?
what is a cursor? : Sql dba
How many developers work on postgresql?
What is sql in oracle?