Created
January 2, 2020 13:24
-
-
Save javrasya/ade006545068ae713857d981d0342081 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
-- execute_student_count_report.hql | |
use mydatabase; | |
INSERT INTO TABLE student_count_report | |
SELECT | |
school.school_name, | |
count(student.student_id) as cnt | |
FROM school | |
LEFT JOIN student on student.school_id = school.school_id | |
GROUP BY school.school_name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment