In SQL I have a DateField thats showing the current month data. Some of the Dates are NULL and I would like to replace the NULL Date with somethng like the fn NOW() date somehow. Can someone help guide me with updating NULLS in my query? Im using MS SQL 2008 R2.
SELECT TOP (100) PERCENT dbo.[001_SubItem_Price].SubItem, { fn NOW() } AS Date, dbo.POTable.Date AS Datefield
FROM dbo.[001_SubItem_Price] LEFT OUTER JOIN
dbo.POTable ON dbo.[001_SubItem_Price].SubItem = dbo.POTable.Item
WHERE (MONTH(dbo.POTable.Date) = MONTH(GETDATE())) OR
(MONTH(dbo.POTable.Date) IS NULL)
GROUP BY dbo.[001_SubItem_Price].SubItem, dbo.POTable.Date
ORDER BY dbo.[001_SubItem_Price].SubItem

Just use:
...COALESCE(Datefield, GETDATE()) as Datefield