In SQL server (2000 & 2005 ) What is the difference between these two queries ? Which one I should opt on which scenarios ?
Query1:
Select EventId,EventName from EventMaster where EventDate BETWEEN '10/15/2009'
and '10/18/2009'
Query2:
Select EventId,EventName from EventMaster where EventDate >='10/15/2009' and
EventDate <='10/18/2009'
--Edit: second Eventdate was originally missing, hence query syntactically wrong