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 only want to get total minute. For eg,
if the time is 07:10:35, I want 430.
How to achieve that?
The value from the field is 01-01-2001 07:10:40
The result I want is 430 ((7*60)+10) only.
Here’s a sample: