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

Sabaragamuwa Province Schools Started Data entry #59

Open
gprasangika opened this issue Jul 27, 2020 · 0 comments
Open

Sabaragamuwa Province Schools Started Data entry #59

gprasangika opened this issue Jul 27, 2020 · 0 comments

Comments

@gprasangika
Copy link
Contributor

Name, Census No, Zone and Number of Students, of Sabaragamuwa Province Schools which have started Data entry.

SELECT openemis.institutions.name as School_Name,openemis.institutions.code as Census_No , openemis.areas.name as Zone , FORMAT(COUNT(*),0) as NumberOfStudents
FROM
(SELECT count(ist.modified)
FROM (SELECT DISTINCT it.institution_id,it.student_id,it.education_grade_id,it.modified from institution_students it) ist
) institution_students inner join openemis.institutions inner join openemis.institution_students
on openemis.institution_students.institution_id = openemis.institutions.id
inner join openemis.areas on openemis.institutions.area_id = openemis.areas.id and openemis.areas.parent_id=6
WHERE openemis.institutions.institution_status_id = 1
GROUP BY openemis.institution_students.institution_id

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