I’m writing a SQL script to remove some rows from my table.
I need to remove the rows that have a certain type (easy), where the valuation timestamp is 16:00 on the current day when the create date is less than 4pm. Does that make sense?
delete from cfo_daily_trans_hist where dh_dd_type_id = 'valuation' --and dh_val_time_stamp is today at 16:00 where the dh_create_dt is today at a time earlier than 16:00
I just don’t really know the syntax to do that exact date comparison.
1 Answer