Your question is SQL for Student Analytics. Start with the requirements and the three tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Syapse's Precision Medicine Platform needs a state-level education summary to identify regions with the fewest graduates while prioritizing regions with the largest student populations. Write a PostgreSQL query that uses the student, graduate, and education tables.
| Column | Type | Description |
|---|---|---|
| student_idPK | INT | Unique student identifier |
| student_name | VARCHAR(100) | Student's full name |
| state | VARCHAR(2) | Two-letter state code |
| Column | Type | Description |
|---|---|---|
| graduate_idPK | INT | Unique graduation record identifier |
| student_id | INT | Student associated with the graduation record |
| graduation_year | INT | Year of graduation |
| Column | Type | Description |
|---|---|---|
| education_idPK | INT | Unique education record identifier |
| student_id | INT | Student associated with the education record |
| degree | VARCHAR(100) | Degree or educational program |
| institution_name | VARCHAR(150) | Educational institution name |