I am facing a problem with the MySQL query result. I want result rows to a column & get only one row please suggest & help to solve my problem
I Done that in numeric values using sum() but in this case, data is string not numeric
SELECT
CASE WHEN IB.`IndicatorId` = 459 THEN AA.`Answer` ELSE '' END AS 'FO',
CASE WHEN IB.`IndicatorId` = 462 THEN AA.`Answer` ELSE '' END AS 'Main_Canal',
CASE WHEN IB.`IndicatorId` = 461 THEN AA.`Answer` ELSE '' END AS 'Parent_Canal',
CASE WHEN IB.`IndicatorId` = 473 THEN AA.`Answer` ELSE '' END AS 'Channel_length',
CASE WHEN IB.`IndicatorId` = 472 THEN AA.`Answer` ELSE '' END AS 'Design_Discharge_Cusecs',
CASE WHEN IB.`IndicatorId` = 474 THEN AA.`Answer` ELSE '' END AS 'GCA',
CASE WHEN IB.`IndicatorId` = 475 THEN AA.`Answer` ELSE '' END AS 'CCA',
CASE WHEN IB.`IndicatorId` = 471 THEN AA.`Answer` ELSE '' END AS 'Water_Courses',
A.`DataCollectorId`
FROM `answer_water_discharge` AS A
INNER JOIN `answers_answer_water_discharge` AS AA ON AA.`AnswerId` = A.`AnswerId`
INNER JOIN `activity_sections_indicators` AS ASI ON ASI.`SectionIndicatorId` = AA.`SectionIndicatorId`
INNER JOIN `indicators_bank` AS IB ON IB.`IndicatorId` = ASI.`IndicatorId`
WHERE 1=1 AND A.AnswerId = 57
I want one row with rows to column