Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL to split the string based on the space (Example -Split the first_name alone from the complete name , Name 'Pete Mahadevan Sankaran' should give result as 'Pete')

$
0
0

Hi, 

I would like to know the SQL function to split the string based on the space. 

Example 

Column ( Complete Name)

PETE MAHADEVAN SANKARAN 

Expect to have result as PETE

Please help with the SQL function.

Thanks!

Prakash Ms




Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>