How to get particular part of string in SQL Server?

 Posted by vishalneeraj-24503 on 8/5/2014 | Category: Sql Server Interview questions | Views: 381 | Points: 40
Answer:

We have to use Substring method to achieve the same as:-
For Example:-
SELECT SUBSTRING('Vishal Kumar',1,6);

Output
Vishal


SELECT SUBSTRING('Vishal Kumar',7,6);

Output
Kumar


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response