RE: Design help

2013-04-21 Thread Ilya Kazakevich
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

Re: Design help

2013-04-21 Thread Neil Tompkins
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

Re: Design help

2013-04-21 Thread Denis Jedig
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

RE: Design Help Needed

2007-06-14 Thread Jerry Schwartz
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

RE: Design Help Needed

2007-06-14 Thread Mikhail Berman
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_

Re: Design Help Needed

2007-06-14 Thread Melvin Zamora
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

Re: design help

2002-02-13 Thread James Carrier
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