jasonsalas
IS-IT--Management
I've been trying to grab all records from the current month, but I've run into trouble. This is what I'm using:
SELECT ColumnID,ColumnDate FROM TableName WHERE ColumnDate = MONTH(GETDATE())
Got any pointers on how to evaluate a column of type SMALLDATETIME, only looking within the current month?
Thanks!
SELECT ColumnID,ColumnDate FROM TableName WHERE ColumnDate = MONTH(GETDATE())
Got any pointers on how to evaluate a column of type SMALLDATETIME, only looking within the current month?
Thanks!