Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

GROUP BY With Multiple Columns

SELECT country, state, MIN(age) as min_age
FROM Persons
GROUP BY country, state;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #GROUP #BY #With #Multiple #Columns
ADD COMMENT
Topic
Name
6+6 =