So this is what I have:
declare @breakend datetime,
@breakstart datetime
set @breakend = (select Convert(varchar(20),DateAdd(month, 0, convert(varchar(20),getdate(), 102) + Space(1) + '9:00:00 AM'), 120))
set @breakstart = GETDATE()
select CONVERT(VARCHAR(20),DateAdd(SS,Datediff(ss,@breakstart, @breakend)%(60*60*24),0),108) as 'Hours until first break'
I was wondering how to print something like 'Past Break Time' if the time is passed 9:00AM?
So if its 8:00AM it will display '1 hour until break'. If it 9:01AM display 'Past Break Time'