SELECT *, ;
IIF(x=y,1,0) as X, ;
*-- This one would be the concern, it would have conditions
* between 4 tables
IIF(x=y and z=55 and grp=s and via=1 and iloc=50,1,0) as xyz, ;
IIF(x=a,1,0) as A, ;
FROM xTable, yTable, zTable, nTable ;
where loc=50 and grp=aa and .......
group by X into cursor MyCursor
|