I 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.
Answer Posted / kpk
select cust,wmsys.wm_concat(acc) from tbl group by cust;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Are dml statements autocommit?
What is sql lookup?
What is dcl in sql?
What is an escape character in sql?
What is the usage of when clause in trigger?
Can you rollback after commit?
What is the difference between clustered and non-clustered indexes?
Are stored procedures faster than queries?
What is parallel hint?
Sql technical questions
How does rowid help in running a query faster?
Explain the difference between 'between' & 'and' operators in sql
Write a query to display the current date in sql?
Can we join 3 tables in sql?
Can a key be both primary and foreign?