Можете да използвате ORDER BY
вътре в GROUP_CONCAT
функционира по този начин:
SELECT li.client_id, group_concat(li.percentage ORDER BY li.views ASC) AS views,
group_concat(li.percentage ORDER BY li.percentage ASC)
FROM li GROUP BY client_id
Можете да използвате ORDER BY
вътре в GROUP_CONCAT
функционира по този начин:
SELECT li.client_id, group_concat(li.percentage ORDER BY li.views ASC) AS views,
group_concat(li.percentage ORDER BY li.percentage ASC)
FROM li GROUP BY client_id