1412. Find the Quiet Students in All Exams
https://leetcode.com/problems/find-the-quiet-students-in-all-exams
Description
Table: Student
+---------------------+---------+
| Column Name | Type |
+---------------------+---------+
| student\_id | int |
| student\_name | varchar |
+---------------------+---------+
student\_id is the primary key for this table.
student\_name is the name of the student.Table: Exam
+---------------+---------+
| Column Name | Type |
+---------------+---------+
| exam\_id | int |
| student\_id | int |
| score | int |
+---------------+---------+
(exam\_id, student\_id) is the primary key for this table.
Student with student\_id got score points in exam with id exam\_id.A "quite" student is the one who took at least one exam and didn't score neither the high score nor the low score.
Write an SQL query to report the students (student_id, student_name) being "quiet" in ALL exams.
Don't return the student who has never taken any exam. Return the result table ordered by student_id.
The query result format is in the following example.
ac
Previous1411. Number of Ways to Paint N × 3 GridNext1413. Minimum Value to Get Positive Step by Step Sum
Last updated
Was this helpful?