nicholasting
Programmer
SQL------------------------------------------------
SELECT T1.RCP_NO, T2.DSCCODE, T2.DSCVALUE, T1.BN_DT
FROM DETAIL T1 LEFT JOIN DISCOUNT T2 ON T1.PROD_CD = T2.DSCCODE
WHERE (cdate(T1.BN_DT) >= '01/Sep/2007' AND cdate(T1.BN_DT) <= '15/Sep/2007')
--------------------------------------------------
with the SQL query above, i'm using VB6 to query data from Dbase IV database. but it return back the records within the period selected and also after the period. i just want the data within the 1 - 15 sept 2007
can someone give me guide! thanks.
PS: my data is until 3rd OCT 2007,
SELECT T1.RCP_NO, T2.DSCCODE, T2.DSCVALUE, T1.BN_DT
FROM DETAIL T1 LEFT JOIN DISCOUNT T2 ON T1.PROD_CD = T2.DSCCODE
WHERE (cdate(T1.BN_DT) >= '01/Sep/2007' AND cdate(T1.BN_DT) <= '15/Sep/2007')
--------------------------------------------------
with the SQL query above, i'm using VB6 to query data from Dbase IV database. but it return back the records within the period selected and also after the period. i just want the data within the 1 - 15 sept 2007
can someone give me guide! thanks.
PS: my data is until 3rd OCT 2007,