I want the first letters of sku from left up to the second -
. But in output I don't want that second -
to show up.
My input table is
Query:
SELECT SUBSTRING(SKU, charindex('-',SKU), len(SKU) - charindex('-',SKU))
FROM tblname
My excepted output is