how to details and sums of record in one query in mysql code example Example: sum mysql column SELECT sum( mark ) FROM `student`