Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enrollment Data Updates #65

Open
jbaldo opened this issue Jul 8, 2018 · 0 comments
Open

Enrollment Data Updates #65

jbaldo opened this issue Jul 8, 2018 · 0 comments

Comments

@jbaldo
Copy link
Member

jbaldo commented Jul 8, 2018

Each year, both an enrollment per school site data set and a line item expenditure data set for measure G should be added to trackg.org. The enrollment data is used to calculate the $/student which is the only fair way to compare expenditures across school sites.

Data source for enrollment: https://www.cde.ca.gov/ds/sd/sd/filesenr.asp

Query for processing/unifying the data:

SELECT p.ncessch, latest.total_enrollment,  latest.year

FROM (SELECT n.cds_code, SUM(n.enr_total) as total_enrollment, LATESTYYYY as year

FROM ousd_YYYY_state_enrollment n

GROUP BY n.cds_code) latest, osud_ca_public_schools_directory p

WHERE latest.cds_code = p.cdscode

UNION

SELECT e.ncessch, e.total_enrollment, e.year FROM ousd_enrollment_LASTYYYY e

ousd_YYYY_state_enrollment = name of the new dataset
LATESTYYYY = year of the new dataset in YYYY format. For example, the 2016-17 school year would be 2016
ousd_enrollment_LASTYYYY = name for the new, unified table with enrollment data for all years

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant