Select
round ((JulianDay('Chk_date1')) - JulianDay('HireDate'))/365.25 AS TimewithCo
from
employee;
I'm trying to find out difference between these two dates in years but it's giving null.can anyone please guide me.
Hiredate | Chk_date1 |
---|---|
2011-06-17 | 2022-06-01 |
2009-09-21 | 2022-06-01 |
2013-01-13 | 2022-06-01 |
Select
round ((JulianDay(Chk_date1)) - JulianDay(HireDate))/365.25 AS TimewithCo
from
employee;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.