Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Dec 18, 2018 1:08 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Example using the SUM function in the database class?
PostPosted: Wed Oct 05, 2005 8:54 am 
Offline

Joined: Fri Sep 30, 2005 8:23 am
Posts: 215
Location: Elmira, NY
I am trying to get the sum of a numeric field in a sql database (REALSQLdatabase), does anyone have a bit of code that is properly formatted for this?

Thanks in advance!

Bill

_________________
Visit RBLibrary.com Today!

Visit RB Garage Today!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 05, 2005 9:05 am 
Offline

Joined: Fri Sep 30, 2005 8:33 am
Posts: 103
Location: Houston, TX
Bill this is totally off the top of my head BUT it should be:

SELECT SUM(MyNumField) AS resultName
FROM MyTable
WHERE SomeField=SomeCondition


How that helps,

Kev

_________________
Beware Geeks bearing GIFs


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group