Hi Rob,
Try this:
historyflag=0 and istask=0 and exists(select 1 from assignment where wonum=workorder.wonum and siteid=workorder.siteid
and assignment.craft IN ('AC', 'ACCH', 'AIR', 'BOAS', 'CARP', 'CLEANING', 'CLIMB', 'CONTROLS', 'CUTOVER', 'DOORF', 'DOORS',
'DRAIN', 'ELEC', 'EML', 'ENERGY', 'FAB', 'FACM', 'FIRESEC', 'FRA', 'GAS', 'INSP', 'L8', 'LANDS',
'LEV', 'MCH', 'NONE', 'OIL', 'PAINT', 'PAT', 'PEST', 'PLB', 'PORT', 'POST', 'PRESS', 'PROD', 'ROOF',
'SEC', 'SOCTECH', 'SUBDOOR', 'SUBDUCT', 'SUPPLYON', 'TCOMMS', 'WASTE', 'WATER', 'WATERSP', 'WRA'))
and status in ('ASSIGNED', 'APPR', 'INPRG')
and pluspcustomer in ('MC0000DLFT', 'A003B8026')
I know it works through the status in, but I don't have PLUSPCUSTOMER