hello,
I am new at sql & appologies if it is a too basic question; however, i am still working on it:
select * from CONTACT1
inner join CONTSUPP
on CONTACT1.ACCOUNTNO= CONTSUPP.ACCOUNTNO
where CONTACT1.KEY1='Client' and
(CONTSUPP.RECTYPE = "P" )=False
I want to display records where CONTSUPP.RECTYPE = "P" does not exist.
I cannot use CONTSUPP.RECTYPE <> "P" because it displays other rectype values.
I am interested in records that do not have "p" value only & all other rectype letter should be ignored.
Many Thanks
I am new at sql & appologies if it is a too basic question; however, i am still working on it:
select * from CONTACT1
inner join CONTSUPP
on CONTACT1.ACCOUNTNO= CONTSUPP.ACCOUNTNO
where CONTACT1.KEY1='Client' and
(CONTSUPP.RECTYPE = "P" )=False
I want to display records where CONTSUPP.RECTYPE = "P" does not exist.
I cannot use CONTSUPP.RECTYPE <> "P" because it displays other rectype values.
I am interested in records that do not have "p" value only & all other rectype letter should be ignored.
Many Thanks