I have a single table as below:
+-----------+-----------+--------+
| ID | Name | Format |
+-----------+-----------+--------+
| 1 | Rama | Text |
+-----------+-----------+--------+
| 2 | Sita | Text |
+-----------+-----------+--------+
| 1 | Raja | Text |
+-----------+-----------+--------+
| 2 | Bheem | Text |
+-----------+-----------+--------+
I want below output from above table:
+-----------+-----------+
| ID_1 | ID_2 |
+-----------+-----------+
| Rama | Sita |
+-----------+-----------+
| Raja | Bheem |
+-----------+-----------+
Can anyone give me mysql query to do this?
Thank you in advance.