Can some one advise which of the below queries should be prefered over the other and why?
Select ItemCode from dbo.ItemStoreAd
Where DATEDIFF (D,getdate(),AdEffectiveDate) = 0
Select ItemCode from dbo.ItemStoreAd
Where AdEffectiveDate between '2003-07-15' and '2003-07-15 23:59:00'
Select ItemCode from dbo.ItemStoreAd
Where DATEDIFF (D,getdate(),AdEffectiveDate) = 0
Select ItemCode from dbo.ItemStoreAd
Where AdEffectiveDate between '2003-07-15' and '2003-07-15 23:59:00'