SQL - Group By

Pubblicato il: 18 marzo 2024
sul canale di: 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


In questa pagina del sito puoi guardare il video online SQL - Group By della durata di ore minuti seconda in buona qualità , che l'utente ha caricato sql and py 18 marzo 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2 volte e gli è piaciuto 0 spettatori. Buona visione!