I'd like to do a query where I count the number of occurrences of error codes that are assigned to a claim. However, on each claim there can be up to 10 error codes that are in columns "err_cde_01, err_cde_02, etc..."
The first thing I would like to do is count the number of occurrences of each error code (a three digit number) across all 10 columns. Is there a good way to do that outside of summing 10 different queries?