Select from following answers:- String DNF will be split into individual characters like D N F row wise
- String DNF will be split into individual characters like D N F column wise
- Only DN will appear
- Only NF will appear
- All Above
String DNF will be split into individual characters like D N F row wise.
The numberCTE generates the sequential numbers based on the length of the string. It will be 3 here.
The substring function
SUBSTRING(@String,rn,1)
will accept the numbers one by one and will return individual characters based on the Rn value.
final output
Characters
-------------
D
N
F
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator