Tim
0
Q:

SQL HAVING


  SELECT COUNT(CustomerID), Country
FROM Customers
GROUP BY Country

  HAVING COUNT(CustomerID) > 5;
 
2
SELECT COUNT( * ) 
FROM agents 
HAVING COUNT(*)>1; --count is greater than 1
0
SELECT colonne1, SUM(colonne2)
FROM nom_table
GROUP BY colonne1
HAVING fonction(colonne2) operateur valeur
0

New to Communities?

Join the community