EMP: NAME, JOINDATE

select (max(joindate) - min(joindate))*24*60 from emp;

Does this match with your requirement?