bazz
07-20-2007, 04:41 PM
Building (normalising) my Db, I have a query for you guys...
If the admin person queries tbl_premises, can they automatically get the country data from tbl_country by use of foreign keys, or, must they query tbl_country directly. Maybe it would work both ways but which would be more efficient/quicker/'shortest perl code'?
Bazz
tbl_country
| countryID | Name of Country |
tbl_admin
| adminID | First Name | Last Name | CountryID (FK) |
tbl_premises
| PremisesID | Premises Name | CountryID (FK) |
If the admin person queries tbl_premises, can they automatically get the country data from tbl_country by use of foreign keys, or, must they query tbl_country directly. Maybe it would work both ways but which would be more efficient/quicker/'shortest perl code'?
Bazz
tbl_country
| countryID | Name of Country |
tbl_admin
| adminID | First Name | Last Name | CountryID (FK) |
tbl_premises
| PremisesID | Premises Name | CountryID (FK) |