I am using SQL Server 2008 R2
I have a table ITEM
:
NO_ITEM LABEL
121_54_7 aaaaaa
32_5 jjjjjj
6 88888
9987_54_4 oooooo
What I want:
NO_ITEM LABEL
121 aaaaaa
32 jjjjjj
6 88888
9987 oooooo
Just select the first data by omitting the rest after _.