oracle - Subtract one hour from datetime rather than one day -


i have datetime column in oracle (mm/dd/yyyy hh:mm:ss am/pm) when this:

select max(d_dtm)-1 tbl1 

...it goes day. how remove 1 hour column rather 1 day?

i've noticed datetime records 12am mm/dd/yyyy , not mm/dd/yyyy 00:00:00; i'm not sure if matters.

randy's answer good, can use intervals:

select max(d_dtm)- interval '1' hour tbl1 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -