I need to insert some information in the table called task, however, only when a certain condition is accepted that in the case are these two date fields, I put it to today for example if it were manual, that is, it would insert into the system on the date of today, but I just want it to be inserted in the table when those dates are for example for the 20th of that month.
insert into Tarefa
(
TarID,
ProID,
TarData ,
DataAberturaSistema
)
values (
168442,
2,
'2017-10-05 09:20:10.000',
'2017-10-05 09:20:10.015'
)