Hello all. I have a simple quoting system I am developing for a project, and need help with how to query rates. There are two tables, one for zips (with state, county, zip code, and a zip lookup code associated with each zip), and one for rate data (company name, plan letter, age, gender, tobacco/no-tobacco, zip lookup code, and monthly rate).
The quoting process begins with the user selecting a zip code, plan, company, gender, and tobacco. My question, is how am I supposed to join the two tables to query a rate based on zip code/zip lookup code and display the rate? I am really confused. I've done simple mysql queries before, but never anything that needed joining. Will paypal anyone who helps me out.
Here is a diagram I made on how the database is setup.