Query to Convert Varchar HH:MM to Integer Minutes in SQL Server 2008 -
I have a table in SQL Server, where the name of a column is Output: is here timespace datatype type (25) . It originally stores time in the format of
HH: MM format. According to the requirement, now I need that it gives me minutes in real time with i.e. 01:00 gives me 60, 01:30 - & gt; 90. Please help me write queries in SQL Server 2008, so that Vorar (HH: MM) is changed to minutes (integer).
Select
<<> >
| TIMESPENT | ------------- | 00:12 | | 01:05 | | 10:00 pm
| Minutes ----------- | 12 | | 65 | | 600 |
Comments
Post a Comment