In my database I have 2 column who has DATETIME as variable (starts & ends): db What I'm trying to do it's to SUM the hours between starts and ends.
I tried SELECT DATEDIFF(starts, ends) AS myTotal FROM assenze
<- (assenze is the table i'm currently working with)
But this is the output
I know for sure it's not correct, like the first one should be 8H
Can someone help me pls?