Skip 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.

General ExecuteSQL() questions...

Featured Replies

Hi all -

 

I am just now beginning to play around with the new ExecuteSQL() function in FM12 and I have a couple of questions regarding it's use:

 

1) Is it possible to use ExecuteSQL to select a set of records where a field on those records as a certain value in it when that field contains more than one value on each record?  Kind of like using a multi-key field in a relationship.

 

2) Along those same lines....if you create a join in a SQL query do the fields used in the join have to contain a single value each or can either or both fields have multiple values?

 

 

Thanks!

  • 5 months later...

Hmm, sorry, just getting back to the forums...

If "multi-line" sort of thing, can you convert it to comma-delimited instead of return-delimited and use WHERE .. IN ... ? That's basically an 'OR' query using a list of values. Numbers are not single quoted value in the list, but text is:

 

WHERE xxx IN (1,2,3)

 

WHERE yyy IN ('a','b','c')

 

With some calcing this should work using your "values".

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.