. 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 use of double ampersand (&&) in sql queries? Give an example
what is the difference between inner and outer join? Explain with example. : Sql dba
How can I delete duplicate rows?
What is the difference between joins?
what is msql? : Sql dba
How to return multiple rows from the stored procedure?
How do I create an index in word?
What is the use of non clustered index?
How can you view the errors encountered in a trigger?
Why do we use cursors?
Is sql a microsoft product?
What is difference between sql function and stored procedure?
What is the unique index?
What are the different dml commands in sql?
How many joins can you have in sql?