Hello,
how can i count the number of days between (sysdate) & a column called hiredate in PL/SQL.
Thanks.
Hello,
how can i count the number of days between (sysdate) & a column called hiredate in PL/SQL.
Thanks.
You could try the following:
SELECT TRUNC(sysdate) - TRUNC(t.hiredate) FROM myTable t;
This will result in a count of days represented in decimal. The TRUNC
of the timestamps will ensure that you will get a consistent result on successive calls.