I\'m trying to create a report that gets records from a SQL Server database where the delivery date is today.
I\'ve tried
select * from (tablename) where
Yo need to remove the time part of the delivery_date field AND the GETDATE() value.
SELECT * FROM (tablename) WHERE DATEADD(dd, DATEDIFF(dd, 0, delivery_date), 0) = DATEADD(dd, DATEDIFF(dd, 0, GETDATE()), 0)