I know nobody here has the time to teach me everything about this but can somebody give a general outline of how you use multiple tables in mySQL?
I use mySQL with my php web pages. I've made my own table before (singular) and the php code necessary to add/update/and querry the data. So I have the most basic of basic understanding of how tables work and doing how to access the database. But as I said, it was only one single table. I don't understand the general thought process of using multiple tables (which I suppose is the very point of using a relational database).
So lets make up a simple ficticious example. Say I have a database of people in one table. Now if I understand correctly, a good use of multiple tables would be to make a separate table for all the states (50 US plus DC). How do I "connect" somebody's data in the first table to say what state they live in from the second table. I read that combining tables is primarily done in the querry process but that doesn't seem 100% right to me. Something must be in the first table to say "he lives in the state in table2 with the unique ID of 12" (or whatever).
Can somebody please help me out with the basic concept side of this. Then maybe I'll be able to head in the right direction to learn more