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 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   

Output:

  | Minutes ----------- | 12 | | 65 | | 600 |   

is here

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -