Hi im writing a sql query that needs to be grouped the hours in the day e.g
if its 10 am then it should have 10 different groups with data where the date and hour corresponds to that
i've tried
but it does not return the required result, any help?
if its 10 am then it should have 10 different groups with data where the date and hour corresponds to that
i've tried
Code:
datepart(hour, getdate())
Comment