What will be the output of

DECLARE @string VARCHAR(20) = 'Hello how r u?'
SELECT STUFF(REPLICATE(',' + LEFT(@string,10),LEN(LEFT(@string,10)) - LEN(REPLACE(LEFT(@string,10), 'o', ''))),1,1,'')

 Posted by Rajnilari2015 on 3/17/2017 | Category: Sql Server Interview questions | Views: 2246 | Points: 40
Select from following answers:
  1. Hello how ,Hello how ,Hello how ,Hello how
  2. Hello how
  3. Hello how ,Hello how
  4. Hello how ,Hello how ,Hello how ,Hello how ,Hello how ,Hello how
  5. All Above

Show Correct Answer


| Alert Moderator 

Comments or Responses

Login to post response