What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-08 10:04:25
mysqli query order by before group by
//it is vary difficult to find a query that uses Order By before Group By //so, below is the query when you want to first order the results in Asc (min) or Desc (max) order, and then Group by $raw_query = 'SELECT p1.* FROM table1 p1 INNER JOIN ( ... Add solution