请帮助我,下面是我的 sql 查询。当我执行它时,结果什么都没有。
SELECT tblclientinfo.acctnum,
tblclientinfo.fname,
tblclientinfo.fname,
tblreservation.unitnum,
tblbillingsched.billnum,
tblbillingsched.duedate,
tblbillingsched.monthlyamort,
tblbillingsched.totalbalance
FROM tblclientinfo
JOIN tblreservation
ON tblclientinfo.acctnum = tblreservation.reservationnum
JOIN tblbillingsched
ON tblreservation.reservationnum = tblbillingsched.accountnum
WHERE tblbillingsched.accountnum = 'C0000000021'
AND tblbillingsched.duedate BETWEEN '1/1/2014' AND '1/30/2014'
这是我的表:
tblClientInfo, pk = acctNum
tblReservation, pk = ReservationNum, fk = accountNum
tblBillingSched, pk = ID, fk = accountNum