Problem with Select Mysql Condition Group By Order
问题 Each service has different KPIs. These KPIs are ordered with the field order in the table checklist_has_kpi. I want a list of separate services ordered by the order assigned to the KPI. I have this query: SELECT s.serviceid, s.servicenameit, s.servicenameen FROM services s, kpi k, checklist_has_kpi chk WHERE s.serviceid=k.serviceid AND k.kpiid=chk.kpiid AND k.inreport='yes' AND chk.checklistid=61 GROUP BY s.serviceid ORDER BY chk.order ASC But it does not produce the result that I expect and