Select from following answers:- Vishal

- Kumar
- Null
- None of These.
- All Above
Output will be Vishal.
As NULLIF Returns a null value if the two specified expressions are equal.But it returns the first expression if the two expressions are not equal.
Here,@str1 and @str2 have the different values assigned that is Vishal and Kumar.
Here both variables have different values.Therefore it will return 1st argument value that is Vishal.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator