I have a column which contains some values like this
PRODUCT CODE
A099 - Mouse Corded Other
X001 - Pointing Devices Family - FP&A Only
W049A - Video Dualcam Other
N029 - Joystick PC Other
Y089 - Video Other Other
P059 - Gaming Wheels - FP&A Only
I want to fetch string or code before -. Is this possible ?
So the result set would be something like this
A099
X001
W049A
N029
Y089
P059