I have string where I need to convert them into Capital text in required string only
I have written query to do this using Charindex it is finding only one how to go for 2nd one I am only finding the 2nd word through index how to find other words also
select UPPER(LEFT(SUBSTRING('AHRQ utilization flag',CHARINDEX(' ','AHRQ utilization flag',0)+1,
len('AHRQ utilization flag')),1))
For example, Sample input:
have a great day
My desired Output :
Have A Great Day
how to do this one .......suggest me