I'm having a bit of trouble joining all the information from the following tables into a temporary table. They all share some common element...I'm just not sure of the exact syntax for join. Help please?
tbl_eligibility_rule
-------------------------
|rule_name |
| |
|effective_date |
| |
|deferral_days |
| |
|rule_id |
|_______________________|
tbl_eligibility_sub_rule
-------------------------
|rule_id |
| |
|test_code |
| |
|result_code |
| |
|min_value |
| |
|max_value |
| |
|current_donation_only |
|_______________________|
lab_unit_test_result
-------------------------
|test_code |
| |
|result_code |
|_______________________|
tbl_lab_test
-------------------------
|test_code |
| |
|is_numeric |
|_______________________|
My "tables" look like crap, but you get the general idea. Thanks in advance.
tbl_eligibility_rule
-------------------------
|rule_name |
| |
|effective_date |
| |
|deferral_days |
| |
|rule_id |
|_______________________|
tbl_eligibility_sub_rule
-------------------------
|rule_id |
| |
|test_code |
| |
|result_code |
| |
|min_value |
| |
|max_value |
| |
|current_donation_only |
|_______________________|
lab_unit_test_result
-------------------------
|test_code |
| |
|result_code |
|_______________________|
tbl_lab_test
-------------------------
|test_code |
| |
|is_numeric |
|_______________________|
My "tables" look like crap, but you get the general idea. Thanks in advance.