English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I understand about JOINS, but what exactly is the whole point of relations? I don't "get" it. Probably because all the material available asume you know MySQL almost as well as the people that wrote it...

2007-09-12 00:35:51 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

Imagine a Customer table. This table has details of a person. The table will also contain a foreign key field to the Address table.
The Address table will contain a unique key plus details of the address.

If you have two different customers living at the same address then this is not a problem because the different Customer rows just have the same Address key.
So for 1 Address you have many Customers.
For 1 Customer you have 1 Address.

That is all that this means.

2007-09-12 00:49:12 · answer #1 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers