Jump to content
Server Maintenance This Week. ×

ExecuteSQL SUM on a number field


This topic is 3861 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I feel stupid for asking this, but I can't get my simple SQL statement to execute properly. Here is what I have:

 

ExecuteSQL ( "SELECT SUM("Sale Amount") FROM Jobs"; ""; "")

 

Jobs::Sale Amount is a number field, nothing special. 

 

What am I doing wrong? I get the dreaded "?" as a result.

 

Thank you,

Ryan

 

Link to comment
Share on other sites

Are you sure it was moved? I don't see any notification of that action being done. If we move your topic, we send you a notification and a copy of it is posted to the thread. Also, since I'm the one that usually moves the topics, I can assure that I did NOT move this one.

 

I will move this to the SQL topic area not.

 

Lee


Automatic message

This topic has been moved from "Calculation Engine (Define Fields)" to "FQL or FileMaker Query Language".
Link to comment
Share on other sites

Yessir, it was moved by bcooney at 6:46am today. Thank you for moving it back, Lee.


And... nevermind... spent some more time on this this morning and there was nothing wrong with the query. The field in the DB had some bad data in it. 

Link to comment
Share on other sites

That is interesting, I guess that she deleted the post to the Tread? I wonder why? It should remain as part of the thread so that we will know that you didn't multiple post your question.

 

Glad you found a solution to your question.

Link to comment
Share on other sites

Hi All,

 

Yes, I moved this because it IS a calculation problem, since ExecuteSQL ( ) is a FileMaker function.

 

FQL, I believe, is what is used by plugins.

 

-Barbara

 

I'll leave the moving to Lee.

Link to comment
Share on other sites

This topic is 3861 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.