7 kyu

SQL Basics: Simple GROUP BY

22,849 of 22,854matt c

Description:

For this challenge you need to create a simple GROUP BY statement, you want to group all the people by their age and count the people who have the same age.

people table schema

  • id
  • name
  • age

select table schema

  • age [group by]
  • people_count (people count)

NOTE: Your solution should use pure SQL. Ruby is used within the test cases to do the actual testing.

SQL
Fundamentals

Stats:

CreatedOct 26, 2016
PublishedOct 26, 2016
Warriors Trained29164
Total Skips1407
Total Code Submissions50655
Total Times Completed22854
SQL Completions22849
Total Stars75
% of votes with a positive feedback rating88% of 2208
Total "Very Satisfied" Votes1749
Total "Somewhat Satisfied" Votes389
Total "Not Satisfied" Votes70
Total Rank Assessments11
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • matt c Avatar
  • smile67 Avatar
Ad