I have a database that receives an import of data nightly from another database. The problem is that there is a column that is simported with no value, so I need to change the value in that field for all new records. There is a column for the Date and time the new record was added.
Since I dont know what records came over each night I need to be able to select all records added since yesterday. That is where I'm stuck, this is what I have so far:
update TABLE
set COLUMN ='VALUE'
where AddingDateTime > (24 hours ago)-this is the value I dont know how to get.
What command do I use to get the date/time 24 hours ago.
Thanks in advance
Since I dont know what records came over each night I need to be able to select all records added since yesterday. That is where I'm stuck, this is what I have so far:
update TABLE
set COLUMN ='VALUE'
where AddingDateTime > (24 hours ago)-this is the value I dont know how to get.
What command do I use to get the date/time 24 hours ago.
Thanks in advance