SQL - Group By

Publicado el: 18 marzo 2024
en el canal de: sql and py
2
0

https://sqlandpy.com/2024/03/18/sql-g...


-- More than one condition in more than one column
-- Use one set of conditions or another. The OR operator.
Select longitude,latitude,housing_median_age
From tablename
Where housing_median_age = '30.000000'
And latitude GreaterThan= '38.000000'
Or
housing_median_age = '40.000000'
And latitude GreaterThan= '38.000000'

-- Count and Group By housing_median_age
Select Count(*),housing_median_age
From tablename
Where housing_median_age = '30.000000'
And latitude GreaterThan= '38.000000'
Or
housing_median_age = '40.000000'
And latitude GreaterThan= '38.000000'
Group By housing_median_age


En esta página del sitio puede ver el video en línea SQL - Group By de Duración hora minuto segunda en buena calidad , que subió el usuario sql and py 18 marzo 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2 veces y le gustó 0 a los espectadores. Disfruta viendo!