BenjaminLim
IS-IT--Management
Please advice what went wrong with the following syntax. It could not extract data that is (lhldgr = 'GWMLDGR' and lhbook = 'GWMACT') though I did not exclude it in the syntax below. But when I tried to perform select query I was able to select records that has these criteria : i.e. lhyear = '1998' and lhperd in ('5','6') and lhldgr = 'GWMLDGR' and lhbook = 'GWMACT'
=============================
select *
from vgaglh
where lhyear = '1998' and lhperd in ('5','6') and
(lhldgr != 'GWMLDGR' and
lhbook not in ('GWM1997','GWMBUD','GWMALOVHD','GWMAOHPROD'));
=============================
Please advice. Thanks.
=============================
select *
from vgaglh
where lhyear = '1998' and lhperd in ('5','6') and
(lhldgr != 'GWMLDGR' and
lhbook not in ('GWM1997','GWMBUD','GWMALOVHD','GWMAOHPROD'));
=============================
Please advice. Thanks.