I have a tablle like this.
cust acc
---------------
a 1
b 2|3
c 4|5|6

I Want below o/p:
cust acc
-----------
a 1
b 2
b 3
c 4
c 5
c 6
Please any one can you have any ideas share me.
I have urgent requirement.

Answer Posted / monu singh shekhawat

select * from tab
group by acc

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is drop table faster than truncate?

739


what's the difference between a primary key and a unique key? : Sql dba

700


What is dml with example?

727


what are date and time intervals? : Sql dba

758


What is sql query optimization?

760






Is sql an operating system?

719


Can we insert in sql function?

772


What is set transaction?

763


What are reports usually used for?

759


How many columns should be in an index?

707


How do you select unique values in sql?

698


describe mysql connection using mysql binary. : Sql dba

752


What is foreign key sql?

745


What is pivot in sql?

668


how would you enter characters as hex numbers? : Sql dba

713