Give an example of SubString function?

 Posted by vishalneeraj-24503 on 1/24/2014 | Category: Sql Server Interview questions | Views: 767 | Points: 40
Answer:

Suppose i have one string value .i.e. 'Vishal Kumar';
And i want to get only Vishal as output,so i will write as

Select Substring('Vishal Kumar',1,6) as Portion;


Output would be:Vishal


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response