I've tried to write it, but the conditions don't seem to match and it doesn't work, so I need your help.
※Each table and field name corresponds to a table and field name.
Field_A,
Field_B,
Field_C
from
Table_A
where
Table_A.Field_D != /1/
&& Table_A.Field_D != /2/
Str_N = empty;
Table_B.linkPhysicalTableInstance(Table_L);
Field_A
from
Table_B
where
Table_B.Field_D == /2/
&& Table_B.Field_B == Table_A.Field_B
&& Table_B.Field_C == Table_A.Field_C;
{
select firstonly
Field_A
from
Table_Z
where
Table_Z.Field_D == /2/
&& Table_Z.Field_B == Table_A.Field_B
&& Table_Z.Field_C == Table_A.Field_C;
{
while select forupdate Table_L
where
Table_L.Field_A == Table_A.Field_A
{
Table_L.Field_E = empty;
Table_L.Field_F = empty;
Table_L.Field_G = /u/;
Table_L.update();
}
}
}
}
setting
Field_E = empty,
Field_F = empty,
Field_G = /u/
where
Table_L.Field_A == Table_A.Field_A
join
Field_A,
Field_B,
Field_C
from
Table_A
where
Table_A.Field_D != /1/
&& Table_A.Field_D != /2/
exists join
Field_A
from
able_B
where
Table_B.Field_D == /2/
&& Table_B.Field_B == Table_A.Field_B
&& Table_B.Field_C == Table_A.Field_C
&& Table_B.Field_A == empty
exists join
Field_A
from
Table_Z
where
Table_Z.Field_D == /2/
&& Table_Z.Field_B == Table_A.Field_B
&& Table_Z.Field_C == Table_A.Field_C
&& Table_Z.Field_A == empty;