Tip 10 : Returning the first part of a string with delimiter
You have a string delimited by underscore such as 1stPart_2ndPart_3rdPart and want to return the first part of the string only.
C# Implementation of using Split function:
T-SQL implementation of using SUBSTRING and CHARINDEX functions: