which query u can write to sql server doesn't work
inbetween 7.00PM to nextday 9.00AM
Answer Posted / sumesh
Declare @hour varchar(100)
set @time=convert(varchar,getdate(),114)
set @hour=SUBSTRING(@time,1,2)
if(convert(int,@hour)>8 and convert(int,@hour)<19)
begin
print @time
print @hour
end
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
what is a default tcp/ip socket assigned for sql server? : Sql server database administration
Tell me about builtinadministrator?
How to use subqueries in the from clause in ms sql server?
What is buffer cash and log cache in sql server?
what are constraints? : Sql server database administration
what is denormalization and when would you go for it? : Sql server database administration
How do you drop an index?
What is the stored procedure?
Explain system rowset functions?
What is triggers and its types?
Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?
What is the data tier application?
What is sub-query in sql server?
Mention the different authentication modes in sql server.
Explain alternate key, candidate key and composite key in sql server?