single SELECT for fun :)
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```mssql []



select content_id, content_text as original_text,
STRING_AGG(
            replace(
                    (
                    upper(left(value,1)) + lower(right(value, len(value)-1))), 
                    substring(upper(left(value,1)) + lower(right(value, len(value)-1)), 
                    case when charindex('-',upper(left(value,1)) + lower(right(value, len(value)-1))) > 0 then charindex('-',upper(left(value,1)) + lower(right(value, len(value)-1))) else 0 end ,
                    case when charindex('-',upper(left(value,1)) + lower(right(value, len(value)-1))) > 0 then 2 else 0 end ),
                    
                    upper(  substring(upper(left(value,1)) + lower(right(value, len(value)-1)), 
                    case when charindex('-',upper(left(value,1)) + lower(right(value, len(value)-1))) > 0 then charindex('-',upper(left(value,1)) + lower(right(value, len(value)-1))) else 0 end ,
                    case when charindex('-',upper(left(value,1)) + lower(right(value, len(value)-1))) > 0 then 2 else 0 end ) )
                    )
            ,' ') 
            within group (order by content_id, content_text) as converted_text
from user_content cross apply string_split(content_text,' ')
group by  content_id, content_text
order by content_id
```
['MS SQL Server']