Query :
SELECT currency,alert_level,side,
range_start,range_end FROM
AESFX_ALERT_CONFIG order by
Side,Alert_Level
outputs
But I want output like this:
I have tried CASE but that doesnot solves my problem.
Query :
SELECT currency,alert_level,side,
range_start,range_end FROM
AESFX_ALERT_CONFIG order by
Side,Alert_Level
outputs
But I want output like this:
I have tried CASE but that doesnot solves my problem.
Use the group by side, alert
predicate in your select
see https://dev.mysql.com/doc/refman/5.7/en/group-by-handling.html