Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Sql Server 2000 and Dates
I just recently noticed that when you do a select statement on a table like SELECT studentid, modifieddate from tblStudents where modifieddate like 'Nov%', you get all the records for November even though they are in the databases 11-20-2004 for example. ModifiedDate is a datetime type field. However, if I do "SELECT studentid, modifieddate from tblStudents where modifieddate like '11%'", I do not get any results.
What is going on here and how can I allow users to search by 11 and not Nov.?
Thanks so much for your help.
0 · ·