T-SQL: IF Conditional Syntax











IF SomeCondition
BEGIN
-- Execute some code here
END
ELSE
BEGIN
-- Execute some code here
END
Else is optional

Comments

Popular posts from this blog

SQL: GROUP BY And HAVING

Installing AdventureWorks Sample Databases from Microsoft

ASP.NET : Create an Empty Web Application Project in Visual Studio 2012