I need a different query depending on what time of the day it is.
Using Query Analyzer, I can use IF statements to get the result I want. When I put that SQL query in a view and check the syntax it gives me errors. Is it possible for a VIEW in SQL Server 7.0 to contain SQL query with IF-ELSE statements?
Thanks.
Using Query Analyzer, I can use IF statements to get the result I want. When I put that SQL query in a view and check the syntax it gives me errors. Is it possible for a VIEW in SQL Server 7.0 to contain SQL query with IF-ELSE statements?
Thanks.