Question : How to write the query that the table shows the results the way i want in mysql

MYSQL Table
-----------------
Name             Phone
Aung             09 1111111
Aung             09 2222222
John              09 4444444
Mary              09 6666666
Chris              09 8888888
Chris              09 3333333

I want to write the mysql query that the table show the result as below

Table
-----
Name              Phone1             Phone2
Aung           09 1111111         09 2222222
John            09 4444444          -
Mary            09 6666666         -
Chris            09 8888888         09 3333333

Answer : How to write the query that the table shows the results the way i want in mysql

The statement only uses one table, 5 times.
Replace all "tbl" with your table name.
Random Solutions  
 
programming4us programming4us