Any T-SQL statement can be conditionally performed using IF... ELSE. If the condition evaluates to True, SQL server will execute T-SQL statements preceded by an IF condition. T-SQL statements using the ELSE keyword will be performed if the condition evaluates to False.
Conditional statements are used to specify which logic should be run based on whether or not a condition is met. In SQL procedures, there are two types of conditional statements that are supported: CASE.
The word 'if' is used in a conditional sentence. A conditional sentence always has two parts: one that starts with 'if' and explains a probable circumstance, and the other that defines the result. For instance, if it rains, we will be soaked.
Conditional statements are used to control the execution flow based on certain conditions. If a condition is true, you can do one action; if it is false, you can take a different action.
Conditionals are divided into four categories: zero, first, second, and third. It's also possible to mix them up and use one form of conditional in the first portion of a statement and another in the second. "Mixed conditionals" would be the term for these phrases.
Learner's Ratings
4.5
Overall Rating
74%
16%
5%
0%
5%
Reviews
M
Mahima Patel
5
very usefull......thanks
P
Priya Kushwaha
5
Very Good trainer
C
chanchal singh
5
you guys are doing nice job. thanks
U
Umesh Wankhede
5
Not too much interactive
M
Monesh Ram
5
Well Explained in Every Chapters..
G
GAJANAN DIGAMBAR MODE
5
very easy to understand SQL its was dream to learn SQL. Thanx for Learnvern
M
Mohmad Shadab
5
BEST VIDEOS
N
NAGASWETHA
5
very useful
M
mohd aamir
4
Hi Team,
Why you didn't teach/learn how to write select query, even you shared 15 question for practice :(
Y
Yashvant Kadwe
5
I have found the course to be interesting with plenty of valuable information provided as part of the course and through interaction with fellow teachers and trainers from a wide range of disciplines
Share a personalized message with your friends.