In one table of my database I have strings which looks like this one:
sometext-othertext
How to remove the text including dash with SELECT
better use mysql REPLACE function to replace "-" with ""