How can I get the total minute for sql datetime?
Let\'s say:
select getdate() from table
In this way, I will get everything, but I
(DATEPART(HOUR,GETDATE()) * 60) + DATEPART(MINUTE,GETDATE())