Skip to content
Advertisement

Join Hours and Minute column for showing in Decimal format SQL Query

I have two datetime columns in a SQL Server table:

From which I have separated hours and minutes through SQL query

The output is

Now, for further grouping the data, I need to join Hours and Minutes columns in one column for getting output like this

Advertisement

Answer

You can try converting both hours and mins to varchar and concate both to make new column.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement