/ Published in: SQL
Extrae subcadena de cadena separado por caracter
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT CASE WHEN CHARINDEX('(', Val) > 0 THEN RTRIM(SUBSTRING(val,1, CHARINDEX('(', Val) - 1)) ELSE Val END FROM @DATA