Hello,
>Many thanks for your response. Can yo u offer any advice with regards
usage
>of country_codes eg gb and regions, cities etc ? I've been reading up on
>http://en.wikipedia.org/wiki/ISO_3166 etc. Should I be looking to use a
>Surrogate key for countries ? Or the country code like fr for
Many thanks for your response. Can yo u offer any advice with regards
usage of country_codes eg gb and regions, cities etc ? I've been reading
up on http://en.wikipedia.org/wiki/ISO_3166 etc. Should I be looking to
use a Surrogate key for countries ? Or the country code like fr for France
?
Sa
Neil,
Am 21.04.2013 08:47, schrieb Neil Tompkins:
Using joins I can obtain which country each city belongs too. However,
should I consider putting a foreign key in the CITIES table referencing the
countries_id ? Or is it sufficient to access using a join ?
It depends. Adding a reference to
Because you are a novice to data base design, you have fallen into a common
trap. If you think about an array, you don't want to store multiple users in
a row, you want to store them in a column. In other words, you want to have
one table that stores businesses (once per business, probably) and ano
Hi Sudheer,
First of all there a number of ways to design this database.
You will need to choose the one that you feel suites your needs best.
Here one possible design.
Because you have different type of users/accounts, it looks like
"ACCOUNT_TYPE" table is needed
ACCOUNT_TYPE table
Account_
HI Sudheer,
THIS DESIGN IS BASED ON MY MANY->TO->ONE DIRECTION PATTERN
OF DATABASE NORMALIZATION DESIGN... PLEASE MODIFY/CORRECT IT ACCORDING TO YOUR
TASTE. AS A JAVA DEVELOPER I'M USING HIBERNATE FOR MY CREATE-UPDATE-DELETE(CUD)
AND DIRECT JDBC FOR MY QUERIES(R).
YOU MAY VARY.
HERE, HOPE TH
Hi dn, thanks for replying.
I suspect you're right about my 'problem' - I'm probably misunderstanding
some simple SQL construct :-)
Let's say I have the following tables:
parts (partid int, partname varchar(255))
cats(catid int, catname varchar(255))
parts_cats (id i