Oracle - Exemplo para calcular a diferenças em dias entre duas datas 
 
SELECT TRUNC(sysdate) - TRUNC(t.hiredate) FROM myTable t; 
 
 
 
 
 
fonte: http://stackoverflow.com/questions/3129707/count-the-number-of-days-between-today-the-hiredate-in-oracle-sql 
Nenhum comentário:
Postar um comentário