Skip to content
Advertisement

How use data in table as entity for key value in SQL?

I have a table as following:

enter image description here

Is there any SELECT query to show table in following form?

enter image description here

Thanks a lot.

Advertisement

Answer

You can try following code :

UPDATE Since the table is containing more post_id’s, please check the following update.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement