select to_days('2006-12-01') - to_days('2006-11-26') as diff

al posto delle date metti il nome dei campi