Question

In: Computer Science

case study 1.    Draw an Entity Relationship Diagram (ERD) for the following problem. Make sure you identify...

case study

1.    Draw an Entity Relationship Diagram (ERD) for the following problem. Make sure you identify correct relationships, attributes, and identifiers (keys).

2.    Implement the database design into tables using an industrial-strength database management system (e.g. Oracle SQL+).

case:

HELP is a voluntary organization that provides aid to people. Based on the following brief description of operations, create the appropriate fully labeled Crow’s Foot ERD.

Individuals volunteer their time to carry out the tasks of the organization. For each volunteer, their name, address, and telephone number are tracked. Each volunteer may be assigned to several tasks during the time that they are doing volunteer work, and some tasks require many volunteers. It is possible for a volunteer to be in the system without having been assigned a task yet. It is possible to have tasks that no one has been assigned. When a volunteer is assigned to a task, the system should track the start time and end time of that assignment.  

For each task, there is a task code, task description, task type, and a task status. For example, there may be a task with task code “101,” description of “answer the telephone,” a type of “recurring,” and a status of “ongoing.” There could be another task with a code of “102,” description of “prepare 5000 packages of basic medical supplies,” a type of “packing,” and a status of “open.”  

For all tasks of type “packing,” there is a packing list that specifies the contents of the packages. There are many different packing lists to produce different packages, such as basic medical packages, child care packages, food packages, etc. Each packing list has a packing list ID number, packing list name, and a packing list description, which describes the items that ideally go into making that type of package. Every packing task is associated with only one packing list. A packing list may not be associated with any tasks, or may be associated with many tasks. Tasks that are not packing tasks are not associated with any packing list.

Solutions

Expert Solution

Based on given scenario, the Entities are:

  • Volunteer
  • Assignement
  • Task
  • Item
  • Content
  • Package
  • Packagelist

Key points:

  • Each volunteer may be assigned to several tasks, and some tasks require many volunteers. (M:M relationship)
  • When a volunteer is assigned to a task, the system should track the start time and end time of that assignment. As relationship betweem Volunteer and Task is M:M, we need seperate table as Assignment to track assignment details.
  • For all tasks of type “packing,” there is a packing list that specifies the contents of the packages.
  • Every packing task is associated with only one packing list
  • A packing list may not be associated with any tasks, or may be associated with many tasks

Entity Relationship Diagram (ERD) for the given scenario:


Tables:

Volunteer Table:

CREATE TABLE Volunteer(
Vol_ID int NOT NULL,
Name VARCHAR(255),
Telephone VARCHAR(20),
Address VARCHAR(255),
PRIMARY KEY (Vol_ID)
);


Task Table:

CREATE TABLE Task(
Task_Code int NOT NULL,
List_ID int NOT NULL,
Description VARCHAR(255),
Type VARCHAR(255),
Status VARCHAR(255),
PRIMARY KEY (Task_Code),
FOREIGN KEY (List_ID) REFERENCES Pachagelist(List_ID)
);

Assignment Table

CREATE TABLE Assignment(
Task_Code int NOT NULL,
Vol_ID int NOT NULL,
Description VARCHAR(255),
Start_time DATE,
End_time DATE,
PRIMARY KEY (Task_Code),
PRIMARY KEY (Vol_ID),
FOREIGN KEY (Vol_ID) REFERENCES Volunteer(Vol_ID),
FOREIGN KEY (Task_Code) REFERENCES Task(Task_Code)
);


Packagelist Table:

CREATE TABLE Packagelist(
List_ID int NOT NULL,
Name VARCHAR(255),
Description VARCHAR(255),
PRIMARY KEY (List_ID)
);


Package Table:

CREATE TABLE Package(
Pack_ID int NOT NULL,
Task_Code int NOT NULL,
Date DATE,
Weight int,
PRIMARY KEY (Pack_ID),
FOREIGN KEY (Task_Code) REFERENCES Task(Task_Code)
);

Item Table:

CREATE TABLE Item(
Item_ID int NOT NULL,
Description VARCHAR(255),
Value REAL(8,2),
Quantity int,
PRIMARY KEY (Item_ID)
);

Content Table

CREATE TABLE Content(
Item_ID int NOT NULL,
Pack_ID int NOT NULL,
Quantity int,
PRIMARY KEY (Item_ID),
PRIMARY KEY (Pack_ID),
FOREIGN KEY (Item_ID) REFERENCES Item(Item_ID),
FOREIGN KEY (Pack_ID) REFERENCES Package(Pack_ID)
);



Related Solutions

Use information from text to create (ERD) Entity Relationship Diagram . Make sure relationship sentences are...
Use information from text to create (ERD) Entity Relationship Diagram . Make sure relationship sentences are consistent with relationship in ERD. Video Store (AVS) runs a series of fairly standard video stores: • Every customer must have a valid AVS customer card in order to rent a video. Customers rent videos for three days at a time. Every time a cus- tomer rents a video, the system must ensure that he or she does not have any overdue videos. If...
2. Draw an entity relationship diagram (ERD) for the following situation: The state of Georgia is...
2. Draw an entity relationship diagram (ERD) for the following situation: The state of Georgia is interested in designing a database that will track its researchers. Information of interest includes researcher name, title, position; university name, location, enrollment; and research interests. Each researcher is associated with only one institution, and each researcher has several research interests. 3. Visit a Web site that allows customers to order a product over the Web (e.g., Amazon.com). Create a data model that the site...
Develop a Entity-Relationship Diagram (ERD) Many-to-Many The city of Terra Haute, IN wants to maintain information...
Develop a Entity-Relationship Diagram (ERD) Many-to-Many The city of Terra Haute, IN wants to maintain information about its extensive system of high schools, including its teachers and their university degrees, its students, administrators, and the subjects that it teaches. Each school has a unique name, plus an address, telephone number, year built, and size in square feet. Students have a student number, name, home address, home telephone number, current grade, and age. Regarding a student’s school assignment, the school system...
Based on the following situation,draw a complete Entity Relationship Diagram using theCrow’s Foot notation...
Based on the following situation, draw a complete Entity Relationship Diagram using theCrow’s Foot notation which includes:All entities and attributes Relationships Connectivity and relationship participation (4.5 Marks)Primary and foreign keys (3.5 Marks)A lecturer in a university can manage multiple projects. But, it is not compulsory for a lecturer to manage a project. Each project is managed by only one lecturer. Lecturer will have a staff number, a name, a rank, and a research specialty. Projects have a project number, a...
Draw a diagram that illustrates lipid digestion and absorption, make sure you include where these steps...
Draw a diagram that illustrates lipid digestion and absorption, make sure you include where these steps are occurring and the important role of bile! Make sure it is clearly labeled and include a brief description for any sequences and processes.
An Entity relationship diagram and workflow to implement a system that will allow consumers make online purchase.
An Entity relationship diagram and workflow to implement a system that will allow consumers make online purchase. 
(1) Draw the diagram showing the relationship between SAC and LAC. (2) Draw the diagram showing...
(1) Draw the diagram showing the relationship between SAC and LAC. (2) Draw the diagram showing the relationship between SMC and LMC.
Draw a graph of an aggregate demand shock using the AS-AD diagram. Make sure to label...
Draw a graph of an aggregate demand shock using the AS-AD diagram. Make sure to label the axes correctly as well as show the impact of the shock on output, inflation and unemployment.
Overview In this lab, you will design an Enhanced Entity Relationship (EER) diagram to improve on...
Overview In this lab, you will design an Enhanced Entity Relationship (EER) diagram to improve on the database design that you have worked on in the previous weeks. The new design will include additional improvements such as: Inheritance Relationships Constraints Union Types A clear and well-documented explanation of all your modifications and the EER diagram. can you please give me an example of how to start this or what am i supposed to do!!!
1. Describe/draw/label in detail the process of Transcription & Translation. Make sure to identify all key...
1. Describe/draw/label in detail the process of Transcription & Translation. Make sure to identify all key items and their roles IN UR OWN WORS. (10th grader to understand) 2. Sketch and label a food-web that includes at least 6 different items. Make sure to have the arrows show how energy flows from one trophic level to the next.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT