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

how to run 'mysql' commands from a batch file? : Sql dba

601


Is sql microsoft?

535


what are the differences among rownum, rank and dense_rank? : Sql dba

530


What does 0 mean in sql?

516


Which join condition can be specified using on clause?

508






what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

539


What is implicit cursor in pl sql?

529


What are the parts of a basic sql query?

499


How can we find duplicate records in a table?

502


how to use myisamchk to check or repair myisam tables? : Sql dba

492


what is the difference between rownum pseudo column and row_number() function? : Sql dba

600


What is difference between procedure and trigger?

501


Why should I use postgresql?

552


Explain the uses of control file.

599


What is record in pl sql?

583