i am trying to extract a substring(everything before a hyphen, in this case) from a string as shown below:
Net Operating Loss - 2007
Capital Loss - 1991
Foreign Tax Credit - 1997
and want the year and name(substring before hyphen) separately, using SQL server Management studio 2008. Any advice? or idea how i can achieve this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…