Database design refers to a collection of techniques that facilitate design, development, the implementation and the maintenance of a business data management systems. In this assignment, we will be designing a database for BigM business. Our main tasks will be drawing and ERD, normalizing the database, and finally coming up with a relational schema from information gathered in the ERD.
Entity relationship diagram depicts entities, sets of information together with their relations maintained for an enterprise. It is an information modelling method that pictorially demonstrates an information system’s tables and the relations among these tables. Entities, relations and attributes are the components of an Entity Relationship Diagram. Entity Relationship Diagram is used by database designers to model the design of a database.
ERD
Conrad, Dozier & Veeramachaneni, (2017) defines assumption as an action that is accepted as a true as certain to take place without any proof. In the above ERD, there exists a number of assumptions made. They include:
Noh, Bahari & Zakaria, (2018), describes normalization as the technique of arranging data in the database to avoid update, deletion, insertion and redundancy anomalies. To achieve our goal of database development for BigM enterprises without database anomalies we adhered to the following steps:
Example: employee table
Emp_ID |
Emp_ Name |
Salary Paid ($) |
Job Type |
Sales & Marketing |
Productions |
Procurement |
1 |
Susan John |
320 |
Permanent |
Marketing 2 |
||
2 |
Scott Smith |
230 |
Contractual |
Sales 1 |
Productions 1 |
|
3 |
Matt Longson |
120 |
Casual |
This table is not normalized at all, a number of issues exist in the employees table as summarized below.
Insert anomaly: insert anomaly occur when we try to insert a row in our entity table without good understanding of data we are necessitated to know. A good example when are required to add an employee in the above table, without understanding their job types. The new row inserted will look like one below:
4 |
Mark Mazq |
0 |
? |
Update anomaly: this kind of anomaly takes place when an entity is updated while some of data updated is updated leaving some data not updated. For instance, if employee activity sales 1 was changed to economics 1, we will be forced to query each field that has this column item and change it to match the above. This is tedious and nearly to impossible especially when our database is huge.
We converted our above table into first normal form by asking ourselves questions such as:
Keenly observing our first question, the answer is a big NO, there exists similar combination of information that signifies a different row. The answer to the second question is also NO. Simply because there is a probability that more than one employees may have same name. We are going to address this by creating a fresh primary key.
For example,
Employee (Emp_ID, FName, LName, Salary, Job_Type, Sales&marketing, productions)
Our table above is now in third normal form
An entity qualifies to be in second normal form when it is the first normal form, and each primary key does not depend on Primary Key. Observing our table above,
Employee (Emp_ID, FName, LName, Salary, Job_Type, Sales&marketing, productions), FName, LName, Salary, Job_Type, Sales&marketing and productions, are all fields dependent on primary key Emp_ID, our table therefore, is in second normal form.
A database qualifies to be in third normal it is in the second normal form, and its fields does not have functional transitivity. Transitive dependency means that column 1 determines column 2which determines column 3. This feature has to be eliminated from our tables. Observing our table able, none of the columns has this feature. Hence, our table is in third normal form.
It should be noted that every other table in our BigM database, followed the above steps to have 3NF of every table.
According to Jukic, Vrbsky & Nestorov, (2016), a relational database schema denotes to a logical and visual architecture of a db build on a database management system.
It grants the architectural view of the whole database structure providing means for displaying and logically grouping of database objects for instance fields, relations, functions and tables of a database.
Our BigM database has the following database schema:
Store (St_No, PostalA_ID, Name, Email, Fax, Phone)
Product (Pr_No, Name, Description, Brand, Size, Price, quantity, Cus_No, S_No)
Employee (Emp_ID, Fname, LName, Phone, DOB, Tax_File_No, StartDate, Job_Type, Salary, Pay_ID, PostalA_ID, Dep_ID)
Department (Dep_ID, Name, Phone, Email, S_No, Emp_ID)
Manager (Mgr_ID, St_ID, Emp_ID)
Postal Address (PostalA_ID, St_ID, Emp_ID, City, State, Postcode)
Order (Ord_ID,Cus_No, Pr_No, Name, Phone, DateOrdered, DateDelivered)
Supervisor (Sup_ID, Emp_ID, Dep_ID)
Customer (Cus_No, PostalA_ID, Ord_ID, Name, Phone)
Payslip (Pay_ID, Sup_ID, Emp_ID, Pay_Date, Hrs_Worked, Amount_Paind)
St_No |
PostalA_ID |
Name |
|
Fax |
Phone |
|
Datatype |
Varchar |
Varchar |
Char |
Varchar |
Dec |
Int |
Size |
4 |
4 |
50 |
20 |
6 |
10 |
Primary/Foreign |
PK |
FK |
NA |
NA |
NA |
NA |
Pr_No |
Description |
Brand |
Size |
Price |
quantity |
Cus_No |
S_No |
|
Data type |
vachar |
char |
Char |
Dec |
Dec |
Dec |
Varchar |
Varchar |
Size |
4 |
50 |
20 |
5,2 |
6,2 |
4,2 |
4 |
4 |
PK/FK |
PK |
NA |
NA |
NA |
NA |
NA |
FK |
FK |
Emp_ID |
Fname |
LName |
Phone |
DOB |
Tax_File_No |
StartDate |
Job_Type |
Salary |
Pay_ID |
PostalA_ID |
Dep_ID |
|
Datatyp |
Varchar |
Char |
Char |
Int |
Date |
Dec |
Date |
Char |
Dec |
Varchar |
Varchar |
Varchar |
Size |
4 |
50 |
50 |
10 |
NA |
4,0 |
NA |
20 |
6,2 |
4 |
4 |
4 |
PK/FK |
PK |
NA |
NA |
NA |
NA |
NA |
NA |
NA |
NA |
FK |
FK |
FK |
Dep_ID |
Name |
Phone |
|
S_No |
Emp_ID |
|
Datatype |
Varchar |
Char |
Int |
Varchar |
Varchar |
Varchar |
Size |
4 |
50 |
10 |
10 |
4 |
4 |
PK/FK |
PK |
NA |
NA |
NA |
4 |
4 |
Mgr_ID |
St_ID |
Emp_ID |
|
Datatype |
Varchar |
Varchar |
Varchar |
Size |
4 |
4 |
4 |
PK/FK |
PK |
FK |
FK |
PostalA_ID |
St_ID |
Emp_ID |
City |
State |
Postcode |
|
Datatype |
Varchar |
Varchar |
Varchar |
Char |
Char |
Dec |
Size |
4 |
4 |
4 |
20 |
20 |
6 |
PK/FK |
PK |
FK |
FK |
NA |
NA |
NA |
Ord_ID |
Cus_No |
Pr_No |
Name |
Phone |
DateOrdered |
DateDelivered |
|
Datatype |
Varchar |
Varchar |
Varchar |
Char |
int |
Date |
Date |
Size |
4 |
4 |
4 |
50 |
10 |
NA |
NA |
FK/PK |
PK |
FK |
FK |
NA |
NA |
NA |
NA |
Sup_ID |
Emp_ID |
Dep_ID |
|
Datatype |
Varchar |
Varchar |
Varchar |
Size |
4 |
4 |
4 |
FK/PK |
PK |
FK |
FK |
Postal_ID |
St_ID |
Emp_ID |
City |
State |
Postcode |
|
Data type |
vachar |
Varchar |
Varchar |
Char |
Char |
Dec |
Size |
4 |
4 |
4 |
20 |
20 |
6 |
PK/FK |
PK |
FK |
FK |
NA |
NA |
NA |
Pay_ID |
Sup_ID |
Emp_ID |
PayDate |
Hrs_Worked |
Amount_Paid |
|
Data type |
vachar |
Varchar |
Varchar |
Date |
Time |
Dec |
Size |
4 |
4 |
4 |
NA |
NA |
5,2 |
PK/FK |
PK |
FK |
FK |
NA |
NA |
NA |
References
Conrad, J. G., Dozier, C. C., & Veeramachaneni, S. (2017). U.S. Patent No. 9,600,509. Washington, DC: U.S. Patent and Trademark Office.
Jukic, N., Vrbsky, S., & Nestorov, S. (2016). Database systems: Introduction to databases and data warehouses. Prospect Press.
Noh, H. N., Bahari, M., & Zakaria, N. H. (2018). A Conceptual Model of Database Normalization Courseware Using Gamification Approach. In PROCEEDINGS OF NEW ACADEMIA LEARNING INNOVATION (NALI) SYMPOSIUM 2018 (p. 23).
Essay Writing Service Features
Our Experience
No matter how complex your assignment is, we can find the right professional for your specific task. Contact Essay is an essay writing company that hires only the smartest minds to help you with your projects. Our expertise allows us to provide students with high-quality academic writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How Our Essay Writing Service Works
First, you will need to complete an order form. It's not difficult but, in case there is anything you find not to be clear, you may always call us so that we can guide you through it. On the order form, you will need to include some basic information concerning your order: subject, topic, number of pages, etc. We also encourage our clients to upload any relevant information or sources that will help.
Complete the order formOnce we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignmentAs soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download