sql - Is date - TRUNC(date) ever larger than 1? -


i reverse-engineering legacy code written company. includes following statement

update table set deliverydate = trunc(deliverydate) deliverydate - trunc(deliverydate) > 1 

is dead code? there way statement ever match row? maybe absurdly uncommon condition related daylight saving time?

the statement executed on oracle server (version unknown).

deliverydate - trunc(deliverydate) less one, update nothing. there no exception that.


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -