You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT SUM(total_ICDcode_rows.bad_code) as badcode_count, (1.0*SUM(total_ICDcode_rows.bad_code)/SUM(total_ICDcode_rows.row_count)) AS percent_bad FROM
(
SELECT 1 AS row_count, CASE WHEN concept_code REGEXP '^([A-TV-Z|a-tv-z|\d])([\d])([A-TV-Z|a-tv-z|\d])(\.?)([A-TV-Z|a-tv-z|\d]{0,4})$' THEN 0 ELSE 1 END AS bad_code