Thanks for answer/reply. Can i know why MIN() is used.
This is used to avoid sum , you can even use max
max or min of 10 & 10 will be 10 only
Otherwise it will sum every time 10+10=20 because of duplicate values
Please mark the answer as CORRECT & HELPFUL if it really helps you