.  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


Please Help Members By Posting Answers For Below Questions

What are the types of subqueries?

570


Can we use distinct and group by together?

584


which types of join is used in sql widely? : Sql dba

535


What is scope of pl sql developer in future?

589


What is the use of triggers?

541






What is the current version of sql?

534


What is structural independence and why is it important?

545


Is and as keyword in pl sql?

509


What are all the ddl commands?

624


What is clause in sql?

577


What is the difference between sql and isql*plus?

509


What is an inner join sql?

542


Is sql difficult?

743


Can ddl statements be used in pl/sql?

591


What is autocommit sql?

538