I have a table order, and I want to get a total sale so far. This table contains a column grand_total. I want to get the sum of this column from all rows.
order
grand_total
order_id grand_total 1 10 2 20
request should output 30
thank
SELECT SUM(grand_total) FROM order
Here is a link for aggregating functions in MYSQL.
Source: https://habr.com/ru/post/1782601/More articles:asp.net charts: Legend overlaps with the X axis - chartsNot getting the concept of null - mysqlCommon ASP.NET MVC Script Conflict - asp.net-mvcOutOfMemoryError - androidHex for Hexatridecimal in C ++ - c ++Windsor Castle, Free Nubernath and Automation - asp.net-mvcLibrary for checking connection speed - javaДействительно ли Кассандра готова и достаточно зрелая для производственных сред для больших проектов? - sqlJquery change div created from html before adding - javascriptHow to register for NSNotification from UILocalNotification? - iosAll Articles