B
Bernard Piette
I'm sure this has been asked and aswrered but I looked for hours....ok Here
goes.
So I'm building a real estate database managing condo sales and appartment
rentals.
I feel at the base should be solid locations info. But the budget is very
little a few gs and they want lots of queries and reports so I'm kissing this
keeping it simple and will surely not be able to offer 3nf. They don't want
to deal with regions so only country state city
tblCountries
CountryID PK Auto
CountryName
CountryAbbrev
tblProvinceOrState
ProvinceOrStateID PK Auto
ProvinceOrSateName
ProvinceAbbrev
tblCities
CitiesID PK Auto
CityName
tblLocations
LocationID PK
CountryName FK lookup tblCountries
ProvinceOrSateName FK lookup tblProvinceOrState
CityName FK lookup tblCities
The point is that all tables and forms will do lookups with combo boxes on
the fields in Locations table, if doesn't exist than user puts element in
either a new country state or city form so that data entry human errors can
be avoided at all costs by forcing the said country or province or city to
exist beforehand. As is the country provinces and cities drop down boxes are
not synchronized.
Looking at the concepts and I want to be certain b/c must do the same with
Properties Buildings and Units. Is this the right direction?? All help most
apreciated.
See my other post if you want to see most of the tables Thanks again.
Bernard Piette
Solutions Architect
http://www.BernardPiette.com
1610 Boul. St-Jospeh, Suite 1
Lachine, Quebec H8S 2N1
Tel: (514)577-7978
goes.
So I'm building a real estate database managing condo sales and appartment
rentals.
I feel at the base should be solid locations info. But the budget is very
little a few gs and they want lots of queries and reports so I'm kissing this
keeping it simple and will surely not be able to offer 3nf. They don't want
to deal with regions so only country state city
tblCountries
CountryID PK Auto
CountryName
CountryAbbrev
tblProvinceOrState
ProvinceOrStateID PK Auto
ProvinceOrSateName
ProvinceAbbrev
tblCities
CitiesID PK Auto
CityName
tblLocations
LocationID PK
CountryName FK lookup tblCountries
ProvinceOrSateName FK lookup tblProvinceOrState
CityName FK lookup tblCities
The point is that all tables and forms will do lookups with combo boxes on
the fields in Locations table, if doesn't exist than user puts element in
either a new country state or city form so that data entry human errors can
be avoided at all costs by forcing the said country or province or city to
exist beforehand. As is the country provinces and cities drop down boxes are
not synchronized.
Looking at the concepts and I want to be certain b/c must do the same with
Properties Buildings and Units. Is this the right direction?? All help most
apreciated.
See my other post if you want to see most of the tables Thanks again.
Bernard Piette
Solutions Architect
http://www.BernardPiette.com
1610 Boul. St-Jospeh, Suite 1
Lachine, Quebec H8S 2N1
Tel: (514)577-7978