Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ExecuteSQL SUM on a number field

Featured Replies

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

 

Solved by RyanESmith7

Go to solution
  • Author

Why was this moved? This isn't a calculation problem, it is an FQL problem.

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".
  • Author
  • Solution

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. 

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.

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.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.