473,786 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help with normalisation

1 New Member
hi, i am an As level student studying Applied ICT, im having problems with normalisation.

our problem is to computerise a made up business.mine for example is a beauty salon. below are my attributes and they need to be normalised to 3rd normal form! i have also shown what i have come up with but i am unsure as to whether it is correct!

please help as im finding this very difficult.

Normalisation
The goal of normalisation is to create a set of relational tables that are free of redundant data and that can be consistently and correctly modified. This means that all tables in a relational database should be in the third normal form (3NF).

By normalising my database it will ensure that;
• There is no data redundancy among my tables, i.e. there will be no unnecessary duplication.
• Data is consistent in all my tables. For example if a field is updated in one table it will update in all tables. This will save time.
• Complex queries can be performed from data on different tables.

Below are all the fields that will be included in my database

Customer (ID, title, first name, surname, address, town, postcode, telephone#, mobile#, DOB, email address, medical details, allergies, previous treatments, booking ID, date of booking, appt date, appt time, treatment required, treatment duration, treatment price, stock ID, stock name, amount in stock, reorder level, supplier ID, supplier name, supplier email, supplier telephone #)

First normal form- in this normal form I removed all the repeating groups

Customer file (customer ID, title, first name, surname, address, town, postcode, telephone #, mobile#, DOB, email address, medical details, allergies, previous treatments,)

Booking file (booking ID, customer ID, date of booking, appt date, appt time, treatment required, treatment duration, treatment price, stock ID, customer id, stock name, amount in stock, reorder level supplier ID, supplier name, supplier email, supplier telephone number)




Second normal form- here I removed the partial dependencies (A partial dependency is when an attribute is functionally dependent on only
part of the primary key.)

Customer file (customer ID, title, first name, surname, address, town, postcode, telephone #, mobile#, DOB, email address, medical details, allergies, previous treatments,)

Booking file (booking ID, customer ID)

Booking file (booking ID, date of booking, appt date, appt time, treatment required, treatment duration, treatment price, stock ID, customer id, stock name, amount in stock, reorder level supplier ID, supplier name, supplier email, supplier telephone number)


3rd normal form - here I have removed the transitive dependencies (these are repeating attributes.)


Customer file (customer ID, title, first name, surname, address, town, postcode, telephone #, mobile#, DOB, email address, medical details, allergies, previous treatments,)

Booking file (booking ID, customer ID)


Booking file (booking ID, date of booking, appt date, appt time, treatment required, treatment duration, treatment price, stock ID, customer id, stock name, amount in stock, reorder level)

Supplier (supplier ID, supplier name, supplier email, supplier telephone number)
Apr 5 '07 #1
1 2118
MMcCarthy
14,534 Recognized Expert Moderator MVP
Firstly have a look at this tutorial and then come back with any questions you may have.

Normalisation and Table structures

Mary
Apr 6 '07 #2

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

Similar topics

0
1431
by: Michael Lauzon | last post by:
Database Normalisation Advisor Designated Contact: thox, xpl2 Status: Open Open Date: 2004-10-26 11:53 For Project: Lands of Myths & Legends (http://sourceforge.net/projects/lamyle/) Long Description: Our project requires someone to advise us on the database structure for a game that we are planning to create. The key requirements are
5
1630
by: trode | last post by:
Hello all. For the first time, our company might make use of the MS Access portion of the office package. Problem is, I don't know it well enough to whip out a desired program. What we want to do is have two Tables. One table called PRODUCTS, containing "partnumbers" with "descriptions". The other table called "AUDITED PRODUCTS" that starts blank with the following fields: "Tag_number", "Quantity","partnumber", and "description".
2
3826
by: James W. | last post by:
Hi everyone, I would like to ask you lot if you know of a great place on the internet for a fool proof idiots guide to Normalisation 1st, 2nd, 3rd. I looked at webopedia but that is just as confusing. I am looking for a complete idiots guide that really is so simple all it needs is pictures to turn it into a kiddies book
11
2475
by: Michael Thomas | last post by:
Hi everyone Not sure if this is the right newsgroup to be posting to for this question, but I am using Access 2002 to develop a database solution for the company that I work for. It's basically as stock control system where I need to keep track of the quantities of products. Our company is a retail chain, and we have eight shops or locations and a head office. The tables that I've set up are as follows
3
1472
by: Macbane | last post by:
Hello All, This has been bugging me for too long. I have a database that records medical interventions. I am familiar with the theory behind normalisation but am unsure what to do with the following data. Firstly, I have a main table which records the specifics of the intervention (date, reporter, details, location etc). It has links and the database is normalised ok as far as I can make out. However, I have 6 check box fields in...
2
1711
by: hiyamwah | last post by:
Hi i am a little unsure of how you do this problem: A company wishes to allocate staff to a new project that as been proposed by the company. As a result, a new relation was created for this propose as follows: Staff_Project (Staff_No, Proj_Id, Proj_Name Proj_Location, Staff_Hours, Staff_Name, Staff_Address) Assuming that, Staff_No stands for staff number of the employee; Proj_Id is identifies of one of the projects that the...
1
1590
by: mlewis | last post by:
Hello I would be most grateful for a little help / discussion on a normalisation / db structure question I have. I think the issues are pretty well explained graphically on my link (below) but the main question is I'm wondering whether the tables items and services should be in one table with an identifier and whether service providers and service customers should be in one customer table for the purpose of ordering. View of my design ...
2
1839
mikek12004
by: mikek12004 | last post by:
I have a table for categories (id->the primary key, and name) and I want to add another column parent (one category might be inside another) with the id's range of values so in fact parent will be a foreign key of the id right?Can I declare a foreign key of a primary key in the same table as that primary key or it is better make a seperate table for the relationships between categories? (lately been reading about db normalisation and wandering...
4
1565
by: ob1kenobi | last post by:
I'm struggling with the normalisation process for my database in Access here is my UNF. I'm stuck on the 1NF. Internal Reference Number Customer Name Customer Address 1 Customer Address 2 Customer Address 3 Customer Address 4 Customer Address 5 Customer Telephone Number
0
9650
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9497
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9962
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5398
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
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

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.