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 / bubun4u
select cust, REPLACE(wm_conact(acc), ',', '|') as acc from table
group by cust
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
how mysql optimizes distinct? : Sql dba
explain the delete statements in sql
What is the purpose of a sql?
How can I see all tables in sql?
define sql update statement ? : Sql dba
What are the dml statements?
What is field delimiter?
how to run 'mysql' commands from a batch file? : Sql dba
What is a null value?
Describe types of sql statements?
What is dml with example?
Explain normalization and what are the advantages of it?
What are the various levels of constraints?
Explain aggregate functions are available there in sql?
is it possible to pass an object or table to a procedure as an argument?