adspace
. 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 bcp? When does it used? : Sql dba
Is inner join faster than left join?
define sql insert statement ? : Sql dba
What is the best sql course?
Does group by remove duplicates?
what is schema? : Sql dba
how to escape special characters in sql statements? : Sql dba
what are the advantages of sql ? : Sql dba
how to use regular expression in pattern match conditions? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
What is your daily office routine?
If a cursor is open, how can we find in a pl/sql block?
what are all the common sql function? : Sql dba
how to start mysql server? : Sql dba
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me