group by sql not ordering issues

Solutions on MaxInterview for group by sql not ordering issues by the best coders in the world

showing results for - "group by sql not ordering issues"
Hanna
31 Apr 2018
1SELECT * FROM(
2SELECT DISTINCT(item_id),balance
3FROM `stock_activity` 
4
5ORDER BY(activity_id) DESC
6) t1
7GROUP BY (item_id)
8
similar questions
queries leading to this page
group by sql not ordering issues