faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems : Database and SQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 7 people (71%) answered Yes
Recently 3 of 5 people (60%) answered Yes

Entry

What is the correct syntax for summing a field returned in a recordset?

May 20th, 2000 06:54
unknown unknown, Ryan Trudelle-Schwarz


Use the sum function within your db via the sql string.
Something like:

SELECT SUM(cases) as sum_cases FROM whatever WHERE whatever


Of course, you can return other fields as well, that's just an example.



© 1999-2004 Synop Pty Ltd