oracle difference between two dates in seconds
SELECT (END_DT - START_DT) * 60 * 60 * 24 FROM MY_TABLE; -- Seconds
SELECT (END_DT - START_DT) * 60 * 24 FROM MY_TABLE; -- Minutes
SELECT (END_DT - START_DT) * 24 FROM MY_TABLE; -- Hours
oracle difference between two dates in seconds
SELECT (END_DT - START_DT) * 60 * 60 * 24 FROM MY_TABLE; -- Seconds
SELECT (END_DT - START_DT) * 60 * 24 FROM MY_TABLE; -- Minutes
SELECT (END_DT - START_DT) * 24 FROM MY_TABLE; -- Hours
oracle difference between two dates in years
select floor(months_between(date '2012-10-10', date '2011-10-10') /12) from dual;
select floor(months_between(date '2012-10-9' , date '2011-10-10') /12) from dual;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us