Get Sum of Column in MySQL table

Get sum of column in MySQL table


We have a table named "students_marks", we find out the total marks obtain by students in the table.


Now, We will use the SUM command like this -


SELECT sum( marks ) FROM `student_marks`


sum (marks)


335

Notes :


sum two columns in mysql query


mysql sum two columns from two tables


mysql sum of two columns of a row


mysql order by sum of two columns

Tags :
sql sum, sql tutorial, sql total, column total, free tutorial, Sql sum tutorials to get total of column in mysql table, mysql, mysql sum total of a numaric field of column of a table, sum two columns in mysql query, group by two columns mysql, mysql sum two columns from two tables, how to get sum of two columns in sql, mysql sum of two columns of a row, mysql order by sum of two columns, get sum of two columns mysql



div>





Publisher - PhpWorldOnline








Author -
Next Post Previous Post