Skip to main content
se añadieron 21 caracteres en el cuerpo
Origen Enlace
JackNavaRow
  • 7.2k
  • 6
  • 25
  • 49

Tengo la siguiente información necesito sacar el total pero por país mysql

He intentado con esta consulta

SELECT COUNT(PAIS) AS TOTAL_PAIS
                FROM TABLA
                WHERE NUMBER <> '-1'
                 AND NUMBER NOT LIKE '569%'
                 AND FECHA = '20181115'
 

y el resultado es :

**SIN COINCIDENCIAS**
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Brazil
Canada
Canada
Colombia
Colombia
Colombia
Colombia
Colombia
Costa Rica
Costa Rica
Costa Rica
Costa Rica
Dominican Republic
France
France
France
France
France
France
Guatemala
Iceland
Iceland
Italy
Mexico
Mexico
Netherlands
Netherlands
Paraguay
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Russian Federation
Spain
Spain
Spain
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
Uruguay
Uruguay
Uruguay
Uruguay

El resultado que deseo obtener:

TOTAL PAISES: 19

Tengo la siguiente información necesito sacar el total pero por país mysql

He intentado con esta consulta

SELECT COUNT(PAIS) AS TOTAL_PAIS
                FROM TABLA
                WHERE NUMBER <> '-1'
                 AND NUMBER NOT LIKE '569%'
                 AND FECHA = '20181115'
 
**SIN COINCIDENCIAS**
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Brazil
Canada
Canada
Colombia
Colombia
Colombia
Colombia
Colombia
Costa Rica
Costa Rica
Costa Rica
Costa Rica
Dominican Republic
France
France
France
France
France
France
Guatemala
Iceland
Iceland
Italy
Mexico
Mexico
Netherlands
Netherlands
Paraguay
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Russian Federation
Spain
Spain
Spain
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
Uruguay
Uruguay
Uruguay
Uruguay

El resultado que deseo obtener:

TOTAL PAISES: 19

Tengo la siguiente información necesito sacar el total pero por país mysql

He intentado con esta consulta

SELECT COUNT(PAIS) AS TOTAL_PAIS
                FROM TABLA
                WHERE NUMBER <> '-1'
                 AND NUMBER NOT LIKE '569%'
                 AND FECHA = '20181115'

y el resultado es :

**SIN COINCIDENCIAS**
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Brazil
Canada
Canada
Colombia
Colombia
Colombia
Colombia
Colombia
Costa Rica
Costa Rica
Costa Rica
Costa Rica
Dominican Republic
France
France
France
France
France
France
Guatemala
Iceland
Iceland
Italy
Mexico
Mexico
Netherlands
Netherlands
Paraguay
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Russian Federation
Spain
Spain
Spain
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
Uruguay
Uruguay
Uruguay
Uruguay

El resultado que deseo obtener:

TOTAL PAISES: 19

se añadieron 242 caracteres en el cuerpo
Origen Enlace
Juan Perez
  • 530
  • 7
  • 19

Tengo la siguiente información necesito sacar el total pero por país mysql

He intentado con esta consulta

SELECT COUNT(PAIS) AS TOTAL_PAIS
                FROM TABLA
                WHERE NUMBER <> '-1'
                 AND NUMBER NOT LIKE '569%'
                 AND FECHA = '20181115'

**SIN COINCIDENCIAS**
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Brazil
Canada
Canada
Colombia
Colombia
Colombia
Colombia
Colombia
Costa Rica
Costa Rica
Costa Rica
Costa Rica
Dominican Republic
France
France
France
France
France
France
Guatemala
Iceland
Iceland
Italy
Mexico
Mexico
Netherlands
Netherlands
Paraguay
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Russian Federation
Spain
Spain
Spain
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
Uruguay
Uruguay
Uruguay
Uruguay

El resultado que deseo obtener:

TOTAL PAISES: 19

Tengo la siguiente información necesito sacar el total pero por país mysql

**SIN COINCIDENCIAS**
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Brazil
Canada
Canada
Colombia
Colombia
Colombia
Colombia
Colombia
Costa Rica
Costa Rica
Costa Rica
Costa Rica
Dominican Republic
France
France
France
France
France
France
Guatemala
Iceland
Iceland
Italy
Mexico
Mexico
Netherlands
Netherlands
Paraguay
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Russian Federation
Spain
Spain
Spain
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
Uruguay
Uruguay
Uruguay
Uruguay

El resultado que deseo obtener:

TOTAL PAISES: 19

Tengo la siguiente información necesito sacar el total pero por país mysql

He intentado con esta consulta

SELECT COUNT(PAIS) AS TOTAL_PAIS
                FROM TABLA
                WHERE NUMBER <> '-1'
                 AND NUMBER NOT LIKE '569%'
                 AND FECHA = '20181115'

**SIN COINCIDENCIAS**
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Brazil
Canada
Canada
Colombia
Colombia
Colombia
Colombia
Colombia
Costa Rica
Costa Rica
Costa Rica
Costa Rica
Dominican Republic
France
France
France
France
France
France
Guatemala
Iceland
Iceland
Italy
Mexico
Mexico
Netherlands
Netherlands
Paraguay
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Russian Federation
Spain
Spain
Spain
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
Uruguay
Uruguay
Uruguay
Uruguay

El resultado que deseo obtener:

TOTAL PAISES: 19

Origen Enlace
Juan Perez
  • 530
  • 7
  • 19

¿Como sacar el total por país?

Tengo la siguiente información necesito sacar el total pero por país mysql

**SIN COINCIDENCIAS**
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Argentina
Brazil
Canada
Canada
Colombia
Colombia
Colombia
Colombia
Colombia
Costa Rica
Costa Rica
Costa Rica
Costa Rica
Dominican Republic
France
France
France
France
France
France
Guatemala
Iceland
Iceland
Italy
Mexico
Mexico
Netherlands
Netherlands
Paraguay
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Peru
Russian Federation
Spain
Spain
Spain
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
United States
Uruguay
Uruguay
Uruguay
Uruguay

El resultado que deseo obtener:

TOTAL PAISES: 19