You have two tables representing exam scores from two universities:
NewYork table: Contains student scores from New York University
California table: Contains student scores from California University
There is a competition between the two universities. The winner is determined by which university has more excellent students (students who scored 90 or above).
Return:
'New York University'if New York has more excellent students'California University'if California has more excellent students'No Winner'if both universities have the same number of excellent students
Table Schema
| Column Name | Type | Description |
|---|---|---|
student_id
PK
|
int | Primary key, unique student identifier |
score
|
int | Student's exam score |
| Column Name | Type | Description |
|---|---|---|
student_id
PK
|
int | Primary key, unique student identifier |
score
|
int | Student's exam score |
Input & Output
| student_id | score |
|---|---|
| 1 | 90 |
| 2 | 80 |
| student_id | score |
|---|---|
| 1 | 95 |
| 2 | 92 |
| winner |
|---|
| California University |
New York has 1 excellent student (score >= 90): student 1 with score 90. California has 2 excellent students: student 1 with score 95 and student 2 with score 92. Since California has more excellent students (2 > 1), California University wins.
| student_id | score |
|---|---|
| 1 | 89 |
| 2 | 91 |
| student_id | score |
|---|---|
| 1 | 88 |
| 2 | 95 |
| winner |
|---|
| No Winner |
New York has 1 excellent student (student 2 with score 91). California also has 1 excellent student (student 2 with score 95). Since both universities have the same number of excellent students (1 = 1), the result is a draw.
| student_id | score |
|---|---|
| 1 | 93 |
| 2 | 97 |
| 3 | 88 |
| student_id | score |
|---|---|
| 1 | 85 |
| 2 | 90 |
| winner |
|---|
| New York University |
New York has 2 excellent students: student 1 with score 93 and student 2 with score 97. California has 1 excellent student (student 2 with score 90). Since New York has more excellent students (2 > 1), New York University wins.
Constraints
-
1 ≤ student_id ≤ 10^5 -
0 ≤ score ≤ 100 - Both tables contain at least 1 student
-
Excellent student threshold is
score ≥ 90