select trunc((to_char(sysdate,'yyyyMMdd')-to_char(to_date('2004-11-26','yyyy-MM-dd'),'yyyyMMdd'))/10000) from dual