Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
SQL
select [receiptno],[Month],[afeeafterdiscount]
    from paymentmaster  where depositedate between '06/04/2010' and '06/10/2010'


The result set is empty. What’s going on?
Posted
Updated 6-Mar-10 8:13am
v2

1 solution

Assuming that your table actually has records for the given dates, the problem lies in the date conversion between your query and the values in depositedate. Try mm/dd/yyyy or use the convert function in your where clause.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900