Answers for "mysql HAVING"

SQL
1

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
1

mysql HAVING

SELECT colonne1, SUM(colonne2)
FROM nom_table
GROUP BY colonne1
HAVING fonction(colonne2) operateur valeur
Posted by: Guest on June-05-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language