I have a 'location' table and a 'role' table,
Location Table:
id|location_name|location_code|category|
1 | location1 | 0001 | Urban |
2 | location2 | 0002 | Rural |
3 | location3 | 0003 |Suburban|
________________________________________
Revenue Table:
id|role_code|rural|urban|suburban|
1 | 1001 | 5 | 10 | 15 |
2 | 1002 | 7 | 12 | 17 |
1 | 1003 | 9 | 14 | 19 |
__________________________________
The location table is to know the category of the area (Rural, urban or suburban) and the role table is to know the price of the revenue based on the location category.
how do I connect both tables together so that whenever users put in location and role, they see the price?