Company analysis
Question
Database diagram
Design a sample relational database diagram utilizing the survey and information provided.
The relational database diagram should include all 7 elements.
• Find and organize the information required. (Survey Provided)
• Divide the information into tables. ...
• Turn information items into columns. ...
• Specify primary keys. ...
• Set up the table relationships. ...
• Refine your design. ...
• Apply the normalization rules.
The database diagram should include the following: • At least four record tables
• At least two columns in each record table
• At least three relationships between tables
Briefly describe the structure of the relational database. In a few sentences for each, explain:
• What kinds of data will be in each table? What fields will contain these data?
• How will the tables be related to one another? What primary keys, foreign keys, or ID fields will you use?
• How will you normalize your data (1NF, 2NF, 3NF)?
You do not need to get too technical. Demonstrate that you are familiar with the basic structure and rules of database design.
***In short, this activity should include an overview of the data tables and fields, a description of how your tables relate to one another, and an indication that there is an understanding of the normal forms 1-3. ***
Solution
Company analysis
|
Organizing information
|
|||||
|
|||||
|
|||||
Dividing Information into tables
Age
18 |
20 |
21 |
25 |
2 |
4 |
7 |
1 |
Gender
Male |
Female |
6 |
8 |
Race
African American |
White |
Asian |
Latino |
7 |
2 |
1 |
4 |
Form of Abuse
Sexual |
Emotional |
6 |
5 |
Turning information into columns
Sexual abuse
Sexual assault |
incest |
Drug facilitated sexual abuse |
|
|
|
Product ID
Product ID |
Sexual abuse |
1 product id |
Sexual assault |
2 |
Incest |
3 |
Drug facilitated |
Table relationship
|
||||||
|
||||||
What kinds of data will be in each table? What fields will contain these data?
The relational database stores and provides access to points of data which are related to each other. For instance, each table will include data about particular subject. In the above database each table includes raw and columns which contains different fields such as age, gender, and race. In addition, the table in relational database is related to data in other tables. For example, one table may have data that is linked to data in another table by a foreign key. The relationship between tables is what allows a data storage in a relational database in an organized and efficient way.
How will the tables be related to one another? What primary keys, foreign keys, or ID fields will you use?
The relational database has a structure that organizes data into different database tables. Tables are similar to folders in a file system, where each table stores a collection of information. The tables must be related to one another in some way for the relational database to work properly. Primary keys, foreign keys, and ID fields are all used to solve this problem. Primary keys are utilized to identify a row in a table. Foreign keys link data in one table to data in another table. The primary key is a unique value that identifies each row of data in a different table. The tables are inter-connected one on one, one too many, or many to many ways. The proper key is the most effective method for ensuring that a column's value and uniqueness are maintained. Furthermore, a relation in 1NF I it the value contained in it is atomic. In addition, a relation will be in 2NF if its in 1NF; and also, if the key attributes are dependent fully on the primary key. Finally, a relation will be in 3NF if it has no dependency in transitions and it’s in 2NF.
How will you normalize your data (1NF, 2NF, 3NF)?
The relational database 7th and 8th step is to apply the normalization rules which is to decompose relations with transitive dependencies into smaller relations; and also, if you're using a third-party data loader, check for functional and multivalued dependencies. For instance, the above diagram can decompose the relation “Likes” into two relations: one with attributes {user_id, food_type} and another with attributes {food_type, food_name}. We can also check for functional dependencies to see if there are any. For Instance, in the “Users” table, the functional dependencies are user_id -> age, gender, and race. In addition, in the “Likes” table, the functional dependency is food_type -> food_name. Finally, in the “Friends” table, the functional dependency is user_id1 -> user_id2.
References
Link, S., & Prade, H. (2019). Relational database schema design for uncertain data. Information Systems, 84, 88-110.
About Author
Tough Essay Due? Hire Tough Essay Writers!
We have subject matter experts ready 24/7 to tackle your specific tasks and deliver them ON TIME, ready to hand in. Our writers have advanced degrees, and they know exactly what’s required to get you the best possible grade.
Find the right expert among 500+
We hire Gradewriters writers from different fields, thoroughly check their credentials, and put them through trials.
View all writers