In a table a column is having value like 'Steven Kovy'. without using concat() function and concatenate operator "||" how to display like 'Kovy Steven'
/* * In a table a column is having value like 'Steven Kovy'. without using concat() function and * concatenate operator "||" how to display like 'Kovy Steven' */ SELECT STUFF(STUFF(FirstName,1,CHARINDEX(' ',FirstName) - 1, SUBSTRING(FirstName,CHARINDEX(' ',FirstName) + 1,LEN(FirstName))), LEN(FirstName) - CHARINDEX(' ',FirstName) + 2, LEN(FirstName) - CHARINDEX(' ',FirstName), SUBSTRING(FirstName,0,CHARINDEX(' ',FirstName))) As ModifiedString FROM Emp WHERE FirstName LIKE '% %'
In a table a column is having value like 'Steven Kovy'. without using concat() function and concatenate operator "||" how to display like 'Kovy Steven'
Profile Answers by us.arvindpriya Questions by us.arvindpriya
Questions by us.arvindpriya