Skip to content

Commit

Permalink
Time: 2277 ms (19.86%), Space: 0B (100.00%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantoniochacon committed Jun 2, 2024
1 parent 3e9885d commit 841e60a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Write your MySQL query statement below
SELECT student_id, student_name, subject_name, (SELECT COUNT(student_id) FROM Examinations WHERE student_id = stu.student_id AND subject_name = sub.subject_name) AS attended_exams FROM Students stu JOIN Subjects sub ORDER BY student_id, subject_name;

0 comments on commit 841e60a

Please sign in to comment.