Answers for "mysql group by and having clause"

SQL
2

having in mysql

SELECT 
    ordernumber,
    SUM(quantityOrdered) AS itemsCount,
    SUM(priceeach*quantityOrdered) AS total
FROM
    orderdetails
GROUP BY 
   ordernumber
HAVING 
   total > 1000;
Posted by: Guest on September-17-2020
0

Which clause is used to place condition with GROUP BY clause in a table

having
Posted by: Guest on December-08-2020

Code answers related to "mysql group by and having clause"

Code answers related to "SQL"

Browse Popular Code Answers by Language