my sql sum of values through joined table code example Example: sum mysql column SELECT sum( mark ) FROM `student`