SQL comments translated into Spanish (#27751)

This commit is contained in:
yosoyoscar
2019-08-12 18:47:01 +02:00
committed by Randell Dawson
parent 3438e7061b
commit 7c41862cbb

View File

@ -20,9 +20,9 @@ Al ordenar este conjunto de datos en un orden descendente (DESC), los candidatos
SELECT Candidate, Election_year, sum(Total_$), count(*) SELECT Candidate, Election_year, sum(Total_$), count(*)
FROM combined_party_data FROM combined_party_data
WHERE Election_year = 2016 WHERE Election_year = 2016
GROUP BY Candidate, Election_year -- this tells the DBMS to summarize by these two columns GROUP BY Candidate, Election_year -- indica al DBMS que agregue por estas dos columnas, en este caso suma Total_$ y cuenta el número de filas en las que coinciden Candidate y Election_year
HAVING sum(Total_$) > 20000000 -- limits the rows presented from the summary of money ($20 Million USD) HAVING sum(Total_$) > 20000000 -- limita las filas que se muestran a aquellas que superan los 20M (una vez sumados los datos según la claúsula GROUP BY)
ORDER BY sum(Total_$) DESC; -- orders the presented rows with the largest ones first. ORDER BY sum(Total_$) DESC; -- ordena las filas resultantes, mostrando primero las de importe mayor
``` ```
```text ```text