Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reporting Headache
Message
De
14/07/2000 11:12:37
 
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00391888
Message ID:
00392446
Vues:
8
You miss the HAVING CLAUSE because of the COUNT...

SELECT
Employees.ID, Employees.FirstName,
Employees.LastName, Employees.Department,
COUNT(ReportRequests.ID) AS Ctr
FROM
Employees, ReportRequests
WHERE
Employees.ID = ReportRequests.EmpID
GROUP BY
Employees.ID, Employees.FirstName,
Employees.LastName,
Employees.Department
HAVING
COUNT(ReportRequests.ID) > 1
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform