I am trying to convert this Oracle statement to SQL Server:
trunc(e.evt_created) - (to_number(to_char(e.evt_created, 'DD')) - 1)As "Month Raised"
This gets the first day of the month, so if e.evt_created
holds 2009-05-11 10:19:27.0 then I need 2009-05-01.
What is the SQL Server equivalent to get that result?