PayPal's analyst training dataset contains one row per student and subject. Before calculating performance metrics, exclude students whose marks are missing in two or more subjects.
Write a PostgreSQL query that returns the students who should remain after this exclusion.
NULL.student_id.Each student has at most one row per subject, so each NULL mark represents one missing subject mark.
| Column | Type | Description |
|---|---|---|
| student_id | INT | Student identifier |
| student_name | VARCHAR(100) | Student's full name |
| subject_name | VARCHAR(100) | Subject being assessed |
| marks | NUMERIC(5,2) | Marks earned, or NULL when the mark is missing |