473,394 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Acceptable number of duplicates in a Table

PhilOfWalton
1,430 Expert 1GB
As a matter of interest, how many duplicated words do you suggest are acceptable in a table?

For example, if I am writing a Db for a local business or organisation, I know that the same town will appear in the address numerous times, so there are 3 tables for address, towns and counties/states.

If, on the other hand. the Db is for a more national organisation, then I tend to include the town & county as fields in the address table.

So the question is, in the later case, how many duplicate towns is sensible. I tend to limit it to about half a dozen, but would be interested in the Experts views.

Phil
May 11 '18 #1
4 1054
twinnyfo
3,653 Expert Mod 2GB
Phil,

Although your question is off topic, the topic of the question seems on topic. I aim to never have duplicates, if at all possible. In your example, I would have a table for “People” and a table for “Addresses”. This would allow you to have Personal, Work and alternate addresses (as many as you like) for each person. In the Addresses table, I would have separate tables for each street name, city and state. Some would have a separate table for “Street Type” such as “Street”, “Road”, “Avenue”, etc.

I hope this makes sense.
May 11 '18 #2
PhilOfWalton
1,430 Expert 1GB
Definitely off topic. I'd be more than happy if this could me moved to a new topic.

Phil
May 12 '18 #3
PhilOfWalton
1,430 Expert 1GB
Thanks, Twinnyfo for moving this to a new topic, very sensible and much appreciated.

Interesting. I tend to allow a short 0.5% duplicates and a maximum of about 10 duplicates for a large address table before I consider adding the town & county table. Don't think I have ever got to that sort of limit with street names.

I tend to use a lot of join tables - they certainly give great flexibility. as you say, so many learners get the idea of an AddressID in their People Table, then realise that there is a business address so add AddressID, and curse when the find out about the holiday home.

I am trying to write a beginners guide to database design and in particular a bit about normalisation, because so many of the Dbs we see on Bytes are just hopeless. Do you think this would be of any use?

Phil
May 12 '18 #4
twinnyfo
3,653 Expert Mod 2GB
Absolutely a great idea. There is an article on Bytes that talks about normalization but it speaks very theoretically and might not be as straightforward as a beginner might need. I’d be glad to take a look at your ideas!
May 12 '18 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Roderik | last post by:
Hi, I have a table like this: <table id="myTable"> <tr><td>text</td><td>text</td></tr> <tr><td>text</td><td>text</td></tr> ... <tr><td>text</td><td>text</td></tr> </table>
5
by: MN | last post by:
Hello, I have a customer table and another table that I need to prepopulate with special customer IDs, unique and not sequential. Is there a way to configure Access to assign the customer ID to...
7
imrosie
by: imrosie | last post by:
Hello, I'm trying to figure out how to store only the last 4 digits of a credit card number in a 'Payments' table. paymentid is the primary key, not credit card number. I tried using the...
3
by: Locoman | last post by:
I have a table full of data that I need to assign to three different individuals. So I can better track their work, I want to assign the work randomly. While in the database, the people working the...
17
by: kkirtac | last post by:
Hello, i m using the standard rand() function to generate several random numbers. Even if i seed the generator before the loop "srand( (unsigned)time( NULL ) );" , it usually selects a previously...
13
by: Peader | last post by:
Hello, I’d like to make an inquiry into how to best perform a task in access 2003. I have a form which enters data into a table. This in turn is linked to a label. After ten data entries into the...
8
by: JVG | last post by:
hi, i am create complaint register in Ms- Access 2000 ther is i want complaint no. which is depend on month and year. for Eg. if the month is Janury and year is 2007 then my complaint number is...
7
by: john.cole | last post by:
I have searched all the groups I can, and I still haven't been able to come up the solution I need. I have the following problem. In my form named sbfrmSpoolList, I am entering a job, spool and...
6
by: Amy Badgett | last post by:
I am currently trying to create an inventory database that includes a form that will update the inventory numbers last updated in the database. Rather than having one row constantly being updated in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.