Hi,
I need to substract two dates so i get the difference between them in seconds. When i do something like :
select to_date('14-02-2002 11:30:03', 'DD-MM-YYYY HH:MI:SS') - to_date('14-02-2002 10:30:00', 'DD-MM-YYYY HH:MI:SS') from dual
I get 0,0417013888888889 as a result. Not really 3 seconds. I also cant figure out this number, because 0,04... is not equal to 3 seconds.
Then i found out the ROUND statement, so i did
select round( to_date('14-02-2002 11:30:03', 'DD-MM-YYYY HH:MI:SS') - to_date('14-02-2002 10:30:00', 'DD-MM-YYYY HH:MI:SS'), "SS" ) from dual
Nice try, but no succes. ( invalid number )
Does anyone know what i do wrong?
I need to substract two dates so i get the difference between them in seconds. When i do something like :
select to_date('14-02-2002 11:30:03', 'DD-MM-YYYY HH:MI:SS') - to_date('14-02-2002 10:30:00', 'DD-MM-YYYY HH:MI:SS') from dual
I get 0,0417013888888889 as a result. Not really 3 seconds. I also cant figure out this number, because 0,04... is not equal to 3 seconds.
Then i found out the ROUND statement, so i did
select round( to_date('14-02-2002 11:30:03', 'DD-MM-YYYY HH:MI:SS') - to_date('14-02-2002 10:30:00', 'DD-MM-YYYY HH:MI:SS'), "SS" ) from dual
Nice try, but no succes. ( invalid number )
Does anyone know what i do wrong?