473,549 Members | 2,573 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Acceptable number of duplicates in a Table

PhilOfWalton
1,430 Recognized Expert Top Contributor
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 1057
twinnyfo
3,653 Recognized Expert Moderator Specialist
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 Recognized Expert Top Contributor
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 Recognized Expert Top Contributor
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 Recognized Expert Moderator Specialist
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
35535
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
2586
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 every record each time that a record is either created for the first time or imported for the first time? I would be importing into a temp table and...
7
8003
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 'password' in the first field of the input mask, with;; Then I can't see anything... does anyone have a simple solution to this. I don't want to 'see'...
3
1409
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 records would not be in the same record at the same time and can update the records accordingly. Ideally, I would like the first record to have a...
17
2189
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 selected number in the process, after 6-7 iterations, i want the sequence to be unique..should i consider some further modifications in the code to...
13
1626
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 table, I’d like a label to print. Is it best for me to use a counter on the ‘save’ button in my form or is there an easier way to do this? I’d also...
8
1618
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 start from JA070001, JA070002.....JA070020 and so on up to month end. but the problem is when month wil change my complaint no. again start from 01...
7
6845
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 revision number. My table is indexed properly to not allow duplicates, but I would like teh user to be notified that they are typing a duplicate...
6
11803
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 the table, I would like to keep track of what has come in and out of the warehouse and when. So far, I have the fields on my form and am able to...
0
7527
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7459
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7967
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7819
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3488
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1953
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.