Skip
Arish's avatar

72. Practice - SUM with DISTINCT


Exercise: Sum Distinct Values

Sum distinct marks under 50.

Solution

sql
1SELECT SUM(DISTINCT marks) FROM students
2WHERE marks < 50;