What will be the output of

Select

CONCAT(
REPLICATE(STUFF('12345678ABC',1,Patindex('%[a|b|c|d]%',REVERSE(REVERSE('12345678ABC')))-1,''),5)
,
STUFF('12345678ABC',1,Patindex('%[a|b|c|d]%',REVERSE(REVERSE('12345678ABC')))-1,'')
) ?

 Posted by Rajnilari2015 on 11/16/2015 | Category: Sql Server Interview questions | Views: 1763 | Points: 40
Select from following answers:
  1. ABCABCABCABCABCABC
  2. ABCABCABCABCABC
  3. ABCABCABCABCABCABCABC
  4. ABCABCABCABCABCABCBC
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response