May 30, 2001 #1 kenjoswe Technical User Sep 19, 2000 327 SE Hi all, I retrive records from a SQL database. What is the best way to sum a recordset? With rollup? Is there a better way? /Kent J.
Hi all, I retrive records from a SQL database. What is the best way to sum a recordset? With rollup? Is there a better way? /Kent J.
May 30, 2001 1 #2 Mighty Programmer Feb 22, 2001 1,682 US Can you use the SQL "SUM" command to some the required recordset field when you populate the recordset. Mise Le Meas, Mighty Upvote 0 Downvote
Can you use the SQL "SUM" command to some the required recordset field when you populate the recordset. Mise Le Meas, Mighty
May 30, 2001 Thread starter #3 kenjoswe Technical User Sep 19, 2000 327 SE Mighty, I would like to see both the details and sum of the details. Like: Value 10 20 50 30 Sum 110 /Kent J. Upvote 0 Downvote
Mighty, I would like to see both the details and sum of the details. Like: Value 10 20 50 30 Sum 110 /Kent J.
May 30, 2001 #4 Mighty Programmer Feb 22, 2001 1,682 US I don't know if this is possible but can you do something like: SELECT ID, VALUE, SUM(VALUE) AS VALUE_SUM FROM mytable Mise Le Meas, Mighty Upvote 0 Downvote
I don't know if this is possible but can you do something like: SELECT ID, VALUE, SUM(VALUE) AS VALUE_SUM FROM mytable Mise Le Meas, Mighty
May 30, 2001 #5 Guest_imported New member Jan 1, 1970 0 you can use compute clause or compute by clause in sql server. Upvote 0 Downvote