6 kyu

SQL Basics: Simple HAVING

20,048 of 20,049matt c

Description:

For this challenge you need to create a simple HAVING statement, you want to count how many people have the same age and return the groups with 10 or more people who have that age.

people table schema

  • id
  • name
  • age

return table schema

  • age
  • total_people

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

SQL
Fundamentals

Stats:

CreatedOct 30, 2016
PublishedOct 30, 2016
Warriors Trained25991
Total Skips1854
Total Code Submissions46581
Total Times Completed20049
SQL Completions20048
Total Stars119
% of votes with a positive feedback rating92% of 1984
Total "Very Satisfied" Votes1673
Total "Somewhat Satisfied" Votes287
Total "Not Satisfied" Votes24
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • matt c Avatar
  • donaldsebleung Avatar
Ad