Created
July 2, 2013 14:38
-
-
Save cvd/5909844 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select master_districts.state as state, | |
COUNT(*) as num_s2_respondents | |
from enrollments, | |
cohorts, | |
schools, | |
response_sets, | |
master_schools, | |
master_districts | |
where cohorts.curriculum_id = 5 | |
and cohorts.school_id = schools.id | |
and enrollments.cohort_id = cohorts.id | |
and enrollments.user_id = response_sets.user_id | |
and response_sets.survey_id = 13 | |
and schools.master_school_id = master_schools.id | |
and master_schools.master_district_id = master_districts.id | |
group by master_districts.state | |
--response_sets.survey_id | |
having COUNT(*) >= 50 | |
order by 1,2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment