Exercise: Min Marks per Course
Find minimum marks in each course.
Solution
sql
1SELECT course, MIN(marks) AS min_marks
2FROM students
3GROUP BY course;
Find minimum marks in each course.
1SELECT course, MIN(marks) AS min_marks
2FROM students
3GROUP BY course;