Skip to content
Advertisement

How to do group_concat with Integer columns?

This query displays performance of 3 endpoints combined (decided using some priority) over a series of days in the period of last 2 weeks.

Just for display in the dashboard, I need to combine the values of the dataset using something like group_concat. This seems to be working fine for String type column.

However when I want to combine the values of the success field for display it fails with the following error:

How should I be transforming the Int into String for use within group_concat, or is there another way altogether to achieve the same?

Advertisement

Answer

Try casting those numeric values to STRING first before rolling them up using GROUP_CONCAT:

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