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

Installing AdventureWorks Sample Databases from Microsoft

SQL: GROUP BY And HAVING

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