6 kyu

SQL Basics: Simple HAVING

19,818 of 19,819matt 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 Trained25691
Total Skips1840
Total Code Submissions46184
Total Times Completed19819
SQL Completions19818
Total Stars117
% of votes with a positive feedback rating92% of 1971
Total "Very Satisfied" Votes1664
Total "Somewhat Satisfied" Votes283
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