Replaced unmentioned fields by correct field (#18880)

Concerned queries are line 35 & 43
This commit is contained in:
FTarfasse
2018-10-15 23:26:58 +02:00
committed by Quincy Larson
parent 2379d56b38
commit 7393ccfba0

View File

@ -32,7 +32,7 @@ select count(*) AS studentCount from student; -- count of all records
Aquí obtenemos un recuento de alumnos en cada campo de estudio.
```sql
select studentID, FullName, count(*) AS studentCount from the student table with a group by programOfStudy;
select programOfStudy, count(*) AS studentCount from the student table with a group by programOfStudy;
```
![imagen-1](https://github.com/SteveChevalier/guide-images/blob/master/count03.JPG?raw=true)
@ -40,7 +40,7 @@ Aquí obtenemos un recuento de alumnos en cada campo de estudio.
Aquí obtenemos un conteo de estudiantes con los mismos puntajes del SAT.
```sql
select studentID, FullName, count(*) AS studentCount from the student table with a group by sat_score;
select sat_score, count(*) AS studentCount from the student table with a group by sat_score;
```
![imagen-1](https://github.com/SteveChevalier/guide-images/blob/master/count04.JPG?raw=true)
@ -56,4 +56,4 @@ select Specific_Party, Election_Year, format(sum(Total_$),2) AS contribution$Tot
![imagen-1](https://github.com/SteveChevalier/guide-images/blob/master/count05.JPG?raw=true)
Al igual que con todas estas cosas, hay mucho más que eso, así que consulte el manual de su administrador de base de datos y diviértase probando diferentes pruebas usted mismo.
Al igual que con todas estas cosas, hay mucho más que eso, así que consulte el manual de su administrador de base de datos y diviértase probando diferentes pruebas usted mismo.