sql - how can i calculate the difference between two times in sqlite manager -


i'm working using sqlite manager. want calculate total working hours using in time , out time. used code

select att_date,empno,cast(outtime-intime time) wrkhrs  attendance1 empno=625;  

but doesn't give exact answer. want answer

intime outtime 8.30 17.00 worhrs- 8.30

that want answer hours , minutes...it appreciated if provide answer...


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -