As your AddDate field contains Date & time, your where statement AddDate = '31/01/2006' effectively constraint the AddDate to '2006-01-31 00:00:00' (0 Hour 0 Minutes 0 secods etc). That's why no result is return.Change your code to belowSELECT ID, SurName, AddDateFROM dbo.DateTestWHERE AddDate >= '2006-01-31'and AddDate < '2006-02-01'
orSELECT ID, SurName, AddDateFROM dbo.DateTestWHERE AddDate >= '2006-01-31'and AddDate < dateadd(day, 1, '2006-01-31')
If you are using a variable change the red '2006-01-31' to your variable----------------------------------'KH'