Home >> SQL >> Sum in SQL

Sum in SQL

It will returns the total sum value of the numeric column.

Syntax

SELECT SUM(columnname) FROM tablename WHERE condition; 

Example

SELECT SUM(price) AS totalprice FROM products;

Post Your Comment

Next Questions

Copyright ©2022 coderraj.com. All Rights Reserved.