Write an SQL query to find the maximum CGPA per year, broken down by gender.
Use the student and academic record data. Treat records with a missing CGPA as unavailable.
year, gender, and max_cgpayear ascending, then gender ascending, with missing gender values last| Column | Type | Description |
|---|---|---|
| student_idPK | INT | Unique student identifier |
| student_name | VARCHAR(100) | Student's full name |
| gender | VARCHAR(30) | Student's gender classification |
| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Unique academic record identifier |
| student_id | INT | Student associated with the academic record |
| academic_year | INT | Academic year represented as a four-digit year |
| cgpa | NUMERIC(3,2) | Cumulative grade point average |