Table A
:
id username like_books
-----------------------
1 Peter 1,2,3
2 John 1,2
Table B
:
id book_name
-----------------------
1 Legend
2 StackOverFlow
3 Google
For now, Is there any sql statement that can show the output as below:
Output:
id username like_books
------------------------------------
1 Peter Legend,StackOverFlow,Google
2 John Legend,StackOverFlow
Thanks.