can any one help me on how can I create a query output using the row data on the source table as a header on my output. Please see below for illustration.
E.G.
How about this??
SELECT
GROUP_CONCAT(if(colHeader = 'Header 1', value, NULL)) AS 'Header 1',
GROUP_CONCAT(if(colHeader = 'Header 2', value, NULL)) AS 'Header 2',
GROUP_CONCAT(if(colHeader = 'Header 3', value, NULL)) AS 'Header 3'
FROM myTable;
Note, you will need GROUP BY
statement when there are more data of ids as shown below in Demo 2.