I have a table color and values are like this
Color
D-E
D-015
E-0157
WWW-014
FER-014
T-015
I am expecting the output like
Color
D-E
D
E
WWW
FER
T
If i try
select substring(color,1,1) from Color
it is giving me
Color
D
D
E
W
F
T
How to get the expected output.
'D-E'?