hrdpgajjar
Registered User.
- Local time
- Today, 22:43
- Joined
- Sep 24, 2019
- Messages
- 137
Hi all,
I have two tables 1. FarmerT And 2.RTGST
FarmerT has a field "RegNo"
And
RTGST has two fields "RTGSUTR1" And "MailToHO1"
Now i need a data having following criteria,
- No of cases (RegNo) where "MailToHO1" is not null and "RTGSUTR1" is null
this returns as zero records, but actually there are some records.
below is my query code,
what i am doing wrong?
Thanks
I have two tables 1. FarmerT And 2.RTGST
FarmerT has a field "RegNo"
And
RTGST has two fields "RTGSUTR1" And "MailToHO1"
Now i need a data having following criteria,
- No of cases (RegNo) where "MailToHO1" is not null and "RTGSUTR1" is null
this returns as zero records, but actually there are some records.
below is my query code,
Code:
SELECT FarmerT.RegNo, RTGST.RTGSUTR1, RTGST.RTGSMailToHO1
FROM FarmerT INNER JOIN RTGST ON FarmerT.FarmerID = RTGST.FarmerID
WHERE (((RTGST.RTGSUTR1) Is Null) AND (Not (RTGST.RTGSMailToHO1) Is Null));
what i am doing wrong?
Thanks