select company,sum(cast(duration as float)) from contact1,conthist as conthist1 where contact1.accountno=conthist1.accountno and rectype='S' and ondate > (select min(ondate) from conthist where rectype='S' and accountno=conthist1.accountno) group by company,contact1.accountno order by company
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.