Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

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

This topic is 4149 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.