I am trying to remove Hyphen and only report the number from field, how best to do so?
Example
Loinc_Cd Result needed
4548-4 45484
13457-7 134577
718-7 7187
2857-1 28571
2514-8 25148
You could just use the REPLACE function in SQL. This will just replace it with an empty string but you can do it however you wish.
Code:
SELECT REPLACE(Loinc_Cd, '-', '')
------------------------------------------------------------------------------------------------------------------------
Reason and free inquiry are the only effectual agents against error; they are the natural enemies of error and of error only.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.