I have this following table
id | title
-------+--------------------
16 | Little Women
16 | The Tell-Tale Heart
16 | Practical PostgreSQL
16 | Dynamic Anatomy
18 | The Cat in the Hat
18 | Dune
20 | A Space Odyssey
20 | Goodnight Moon
41 | The Shining
41 | Programming Python
41 | Perl Cookbook
I want the output should come like this shown below:
id | title
-------+------------------
16 | Little Women
| The Tell-Tale Heart
| Practical PostgreSQL
| Dynamic Anatomy
18 | The Cat in the Hat
| Dune
20 | A Space Odyssey
| Goodnight Moon
41 | The Shining
| Programming Python
| Perl Cookbook
Displaying all records that is related with id in the right column using mysql. How can I do this? Please provide me the solution for this I will be very grateful.