Door log report datediff SQL Server 2008 -


i'm trying produce data when employees swipe in , out of various doors in building. data saved in table -

enter image description here

ideally id datediff minutes struggling work! have thoughts best way forward?

you can try way,

select uid, serialno, datediff(m, max(time), min(time) ) tablename  group uid, serialno 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -