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

What is the usage of nvl function?

594


What is sql keyword?

559


What do you think about pl/sql?

531


what is the functionality of the function htmlentities? : Sql dba

521


How to run sql functions in pl/sql?

536






What is a composite primary key?

582


How to use distinct and count in sql query? Explain

606


What is sql select statement?

503


Is nosql relational?

546


What is rename in sql?

549


What is the difference between the conventional and direct path loader? : aql loader

650


Is sql the best database?

499


What is an intersect?

651


What will you get by the cursor attribute sql%rowcount?

549


What are analytic functions in sql?

548