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.

Translate SQL sentence to Filemaker

Featured Replies

  • Newbies

I'm beggining in filemaker. I worked only with relational DB. How can I translate SQL sentence to filemaker

SELECT Sum(Qty) from Products where TypeOfProduct="Oil" AND EntryDate BETWEEN Date1 and Date2

where Date1 and Date2 - dynamic peremeters which receive from the screen of data input

You can't send SQL commands to FIleMaker.You can however, send SQL to and outside ODBC source. Look around the Finding and Searching section for more info on FileMaker finds.

SELECT Sum(Qty) from Products where TypeOfProduct="Oil" AND EntryDate BETWEEN Date1 and Date2

In Filemaker this is called a Find, although other products would call this a query. Once in find mode you would enter "Oil" into the TypeOfProduct field, and allow the user to specify the date range as an expression such as "1/22/01...1/22/03", where the elipse "..." is the range delimiter.

This could also be scripted so as to prompt the user for the dates and the rest could be filled in via the scripting.

The SELECT is not needed since, Filemaker is not generating a seperate result table, but just returning all matching records, similiar to the * operator in SQL.

The SUM() function is actually defined as a field in Filemaker and can be displayed on the screen, the SUM() operator will either work on the current found set or on a set of related records depending upon whether you had specified a local or related field as the parameter.

  • 1 month later...

...in other words ur supperior knowledge of SQL does not help you...welcome to the world of FM "databases"

....my suggestion is if you know SQL stay AWAY from FM because it will confuse you even more and make you doubt all of the SQL logic...well it did it to me smile.gif

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.