Select from following answers:- ABCABCABCABCABCABC
- ABCABCABCABCABC
- ABCABCABCABCABCABCABC
- ABCABCABCABCABCABCBC
- All Above
THE REPLICATE(STUFF('12345678ABC',1,Patindex('%[a|b|c|d]%',REVERSE(REVERSE('12345678ABC')))-1,''),5) will return 'ABCABCABCABCABCABC' and STUFF('12345678ABC',1,Patindex('%[a|b|c|d]%',REVERSE(REVERSE('12345678ABC')))-1,'') will return ABC. Concat function will merge them.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator