Hi Folks,
I am learning SQL using MySQL after a 10 year break from programming

Looking back at Uni, I seemed to remember databases being a bit "smarter" than I seem to be finding them.
Here is an example of a car database with two tables, containing information about the car manufacturer and the car model:
Code:
manufacturer_table
manufacturer_id
manufatuerer_name
manufacturer_founded
manufacturer_defunct
model_table
model_id
model_name
manufacturer_id
I realise I could do a search like:
Code:
select manufacturer_name, model_name from manufacturer_table, model_table where model_name="Mondeo" and model_table.manufacturer_id = manufacturer_table.manufacturer_id
(Maybe the SQL isn't perfect, but it gets my question across!)
Which should output somthing like:
Code:
-----------------------------------
|manufacturer_name | model_name|
|----------------------------------
|Ford | Mondeo |
-----------------------------------
But what I am getting confused about is the relationships between the tables. I have manually searched and matched up the information I wanted using the select statements. I seem to remember in Uni doing one-to-many relationships, but I can see that there could be a way of the manufacturer_table (say Fiat) having a list of models *inside* it - to get a list of models that Fiat made, you would have to search the model_table and then refer back to the manufacturer_table to see if was a Fiat, rather than just being able to see a list of all the model_id's somewhere within the manufacturer_table.
I thought that databases were a bit smarter than this for some reason, and before I continue learning and writing my project, I just wanted to check that I wasn't missing something!
So I guess my questions is - is the database aware in anyway of the relationships between the tables, or do you have to manually compare keys in the select statements? In my example, would I be correct in searching everything model_table for where model_table.manufacturer_id is Fiat?
If this is the case, what difference does one-to-many relationships, or many-to-one or one-to-one relationships make, or am I confusing database design with implementation... or am I generally going crazy
Thanks in advance for all your replies!
Andy.