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

Need help with a query for an interesting situation

$
0
0

Hello,

I have a column named name and it has the names in the below format with first and last name together 

Sachin Tendulkar

Sourav,Ganguly

Mahender S Dhoni

Suresh, Raina

Rahul ,Dravid

and i want to select only first names which are below and in the below format:

Sachin

Sourav

Mahender

Suresh

Rahul

I dont need comma's or text getting trimmed. Is this possible?

Thanks



Viewing all articles
Browse latest Browse all 23857

Trending Articles



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