I\'m trying to select records that were added to the database between the start of the current month and the current day - I more or less know how to get records from the curren
DECLARE @sm DATETIME; SET @sm = DATEADD(DAY, 1-DAY(GETDATE()), DATEDIFF(DAY, 0, GETDATE())); SELECT columns FROM dbo.foo WHERE datetime_column >= @sm;