I would like to update a table with information from other tables. I need know how to update the factor column with the information that is contained in different columns in the Rate table (see updated claim table for example). I can look up the column I need to access in the Procedure table, but I do not know how to write the code using a variable column. Any help would be appreciated.
Below is a sample of the tables and data.
Claim
Claim CPT Provider ID IPA CPT Category Factor
001 99201 PRV001
002 10021 PRV001
Provider Table
Provider ID IPA
PRV001 A032
Procedure Table
CPT CPT Category
99201 Medical
10021 Surgical
Rate Table
IPA Table Medical Surgical
A032 RVS 5.82 99.50
Updated Claim Table
Claim CPT Provider ID IPA CPT Category Factor
001 99201 PRV001 A032 Medical 5.82
002 10021 PRV001 A032 Surgical 99.50
Any help would be appreciated
Below is a sample of the tables and data.
Claim
Claim CPT Provider ID IPA CPT Category Factor
001 99201 PRV001
002 10021 PRV001
Provider Table
Provider ID IPA
PRV001 A032
Procedure Table
CPT CPT Category
99201 Medical
10021 Surgical
Rate Table
IPA Table Medical Surgical
A032 RVS 5.82 99.50
Updated Claim Table
Claim CPT Provider ID IPA CPT Category Factor
001 99201 PRV001 A032 Medical 5.82
002 10021 PRV001 A032 Surgical 99.50
Any help would be appreciated