First of all correct this statement in the query:
B.CreatedDate Between 'Jan 10 2009' AND 'Nov 06 2012'You are not comparing createdDate with the actual DATES. Cast Jan 10 2009 and Nov 06 2012 to date and then see if it works.
↧