Top "Sum" questions

The 'sum' function which returns the sum of the items in an array.

Group by Sum in Excel

Let's assume that I have the following table in Excel A B Item quantity_sold A 3 A 4 A 1 B 5 B 2 …

excel sum grouping
MySQL using Sum and Case

I'm trying to create a GridView with ASP.NET connecting to a MySQL database. The data appears like below. BusinessUnit …

mysql sql sum case
Sum with SQL server RollUP - but only last summary?

I have this query: DECLARE @t TABLE(NAME NVARCHAR(MAX),datee date,val money) insert INTO @t SELECT 'a','2012…

sql-server sql-server-2008 sum rollup
How to avoid floating point precision errors with floats or doubles in Java?

I have a very annoying problem with long sums of floats or doubles in Java. Basically the idea is that …

java sum floating-accuracy
How can I do a count distinct in sqlite?

I have a table: ref,type 1,red 2,red 3,green 4,blue 5,black 6,black I want the result of a sqlite query …

sqlite count sum distinct
Sum of digits in a string

if i just read my sum_digits function here, it makes sense in my head but it seems to be …

python string sum digits
octave error: subscript indices must be either positive integers or logicals

I'm trying to sum the product of an indexed vector and an indexed matrix like this: k=[0:1:N-1] n=[0:1:N-1] …

matlab sum sequence octave indices
Python sum, why not strings?

Python has a built in function sum, which is effectively equivalent to: def sum2(iterable, start=0): return start + reduce(operator.…

python types sum built-in
postgresql calculate sum of a resultset

Is there any built in function in postgresql to get the sum of of a column. Just a simple example …

postgresql sum calculated-columns
VB.NET LINQ Query: Getting The Sum of All Values For A Specific Structure Member

In VB.NET, let's assume I have the following Structure: Public Structure Product Public ItemNo As Int32 Public Description As …

vb.net linq sum