@@ -30,29 +30,29 @@ The result format is in the following example.
3030
3131Scores table:
3232
33- +------------+----------+-------+------------+
34- |  student_id |  subject  |  score |  exam_date  | 
35- +------------+----------+-------+------------+
36- |  101        |  Math     |  70    |  15-01-2023 | 
37- |  101        |  Math     |  85    |  15-02-2023 | 
38- |  101        |  Physics  |  65    |  15-01-2023 | 
39- |  101        |  Physics  |  60    |  15-02-2023 | 
40- |  102        |  Math     |  80    |  15-01-2023 | 
41- |  102        |  Math     |  85    |  15-02-2023 | 
42- |  103        |  Math     |  90    |  15-01-2023 | 
43- |  104        |  Physics  |  75    |  15-01-2023 | 
44- |  104        |  Physics  |  85    |  15-02-2023 | 
45- +------------+----------+-------+------------+ 
33+      +------------+----------+-------+------------+ 
34+      | student_id | subject  | score | exam_date  | 
35+      +------------+----------+-------+------------+ 
36+      | 101        | Math     | 70    | 15-01-2023 | 
37+      | 101        | Math     | 85    | 15-02-2023 | 
38+      | 101        | Physics  | 65    | 15-01-2023 | 
39+      | 101        | Physics  | 60    | 15-02-2023 | 
40+      | 102        | Math     | 80    | 15-01-2023 | 
41+      | 102        | Math     | 85    | 15-02-2023 | 
42+      | 103        | Math     | 90    | 15-01-2023 | 
43+      | 104        | Physics  | 75    | 15-01-2023 | 
44+      | 104        | Physics  | 85    | 15-02-2023 | 
45+      +------------+----------+-------+------------+  
4646
4747** Output:** 
4848
49- +------------+----------+-------------+--------------+
50- |  student_id |  subject  |  first_score |  latest_score | 
51- +------------+----------+-------------+--------------+
52- |  101        |  Math     |  70          |  85           | 
53- |  102        |  Math     |  80          |  85           | 
54- |  104        |  Physics  |  75          |  85           | 
55- +------------+----------+-------------+--------------+ 
49+      +------------+----------+-------------+--------------+ 
50+      | student_id | subject  | first_score | latest_score | 
51+      +------------+----------+-------------+--------------+ 
52+      | 101        | Math     | 70          | 85           | 
53+      | 102        | Math     | 80          | 85           | 
54+      | 104        | Physics  | 75          | 85           | 
55+      +------------+----------+-------------+--------------+  
5656
5757** Explanation:** 
5858
0 commit comments