Merge pull request #34 from cromerc/feature_optimizacion

no message
This commit is contained in:
Chris Cromer 2020-08-08 20:03:13 -04:00 committed by GitHub
commit 17e2a02531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
SELECT P.ID_PAIS, P.NOMBRE, COUNT(1) AS CANTIDAD_ATLETA
SELECT P.ID_PAIS, P.NOMBRE, COUNT(A.ID_ATLETA) AS CANTIDAD_ATLETA
FROM COMPETENCIA C
LEFT JOIN PARTICIPAR_COMPETENCIA PC ON (C.ID_COMPETENCIA = PC.ID_COMPETENCIA)
LEFT JOIN ATLETA A ON A.ID_ATLETA = PC.ID_ATLETA