I need to make a query in MYSQL, I have the following data
COLUM1 FECHA PAIS
0 2018-11-13
0 2018-11-13 Reino Unido
0 2018-11-13
1 2018-11-13 Colombia
0 2018-11-13
1 2018-11-13 Peru
0 2018-11-13
0 2018-11-13 Espana
1 2018-11-13
0 2018-11-13 Colombia
0 2018-11-13
0 2018-11-13 USA
0 2018-11-13
1 2018-11-13 Brasil
0 2018-11-13
0 2018-11-13 Uruguay
0 2018-11-13
0 2018-11-13 Peru
0 2018-11-13
0 2018-11-13
0 2018-11-13 Costa Rica
0 2018-11-13 Costa Rica
0 2018-11-13
1 2018-11-13
0 2018-11-13
0 2018-11-13 USA
0 2018-11-13
0 2018-11-13 Peru
1 2018-11-13
0 2018-11-13 USA
0 2018-11-13
0 2018-11-13 USA
0 2018-11-13
0 2018-11-13 USA
1 2018-11-13
0 2018-11-13
0 2018-11-13 USA
0 2018-11-13
0 2018-11-13 Costa Rica
0 2018-11-13
0 2018-11-13 Argentina
0 2018-11-13
0 2018-11-13 Argentina
0 2018-11-13
0 2018-11-13 Paraguay
0 2018-11-13
0 2018-11-13 Peru
0 2018-11-13
0 2018-11-13 Colombia
1 2018-11-13
1 2018-11-13
1 2018-11-13 Argentina
0 2018-11-13
0 2018-11-13 Peru
0 2018-11-13
0 2018-11-13 Colombia
In the COLUM1
column you can see 0
and 1
where 0
represents EXITOSO
and 1
NO EXITOSO
What I need to bring me is the following:
- The total of
EXITOSO
for each country - The total of
NO EXITOSO
for each country