Reputation: 527
From a Table T, I want to remove the decimal from the varchar field ICD10 (alphanumeric ICD10 codes) while also keeping those codes which do not have a decimal. So basically all codes without a decimal.
Original field
ICD10
-----
F84
F84.0
H93.25
F90.2
E75.02
Desired Output
ICD10
----
F84
F840
H9325
F902
E7502
Attempt
SELECT icd10 FROM T;
for the lack of knowledge of which function to use
Upvotes: 1
Views: 2124