1
Please select the amount of hours in regression until 00:00 hours in Sql Server, always of the current day. I get this through a function like 'DATEADD'?
Ex: Now it is 15:00 hrs would like to pick up the amount of hours from 00:00 hrs today to the current time Getdate(). What would work is as clear as the last 15 hours.
I hope you made me understand, I thank you!
Rodolfo, from what I understand the result will always be the current time, so I believe you can use the function
Datepart(hour, current_timestamp)
– imex
Mooonstro, thank you very much... was exactly that.
– Rodolfo Santos