I need help writing this progress query:
find first a no-lock
where a.a = variable
and a.b = variable2
and a.c = variable3
and ((a.d <> variable4
and a.e <> variable5
and a.f <> variable6)
/* this “or in” is just sudecode for what I want it to do */
or in (first b no-lock where b.a = variable
and (b.b = variable7 or b.b = variable8 no-error)))
no-error.`
The “or in” is the thing I’m having trouble with.
Given the kind of statement you want to create, I suggest the following two-step process: