. 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 the difference between sql and mysql?
What is sql basics?
what is the difference between truncate and drop statements? : Sql dba
How can we solve sql error: ora-00904: invalid identifier?
Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?
Is it possible to update views?
what is the difference between join and union? : Sql dba
What if we write return in procedure?
What is the difference between delete and truncate statement in sql?
What type of database is sql?
What is rownum in sql?
What are synonyms in sql?
Which is faster count (*) or count 1?
What is the difference between null value, zero, and blank space?
How do you update sql?