i have this query to get all data between tow date like this :
SELECT *
FROM cashier_trans
WHERE cashier_trans_Customerid LIKE '%kam%'
OR cashier_trans_Date
BETWEEN '2012/12/01'
AND '2012/12/02'
ORDER BY cashier_trans_Customerid, cashier_trans_DocType, cashier_trans_DocId ASC
the data i retrieve from Database :
Name Date
kam 16/12/2012
why i retrieve Date on 16/12/2012
Look at the where clause condition:
The data you show contains Name = ‘kam’ and therefore satifies the
WHEREcondition.