I am selecting records based on two dates in a same column but my where condition fails to select records on the StartDate and EndDate...
where CreatedDate between @StartDate and @EndDate
I get only the records inbetween the dates and not the records on the StartDate and EndDate... Consider if I pass the same date as StartDate and EndDate I should be able to select all the records on that date. Any suggestions?
 
     
     
     
     
    