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...
5. Draw an entity-relationship diagram, including minimum and maximum cardinality, for the following: The system stores...
5. Draw an entity-relationship diagram, including minimum and maximum cardinality, for the following: The system stores information about two things: cars and owners. A car has attributes for make, model, and year. The owner has attributes for name and address. Assume that a car must be owned by one owner and an owner can own many cars, but an owner might not own any cars (perhaps she just sold them all, but you still want a record of her in...
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.
Entity-relationship data model (ERD)-Business rule, assumptions You are required to develop an ER model to represent...
Entity-relationship data model (ERD)-Business rule, assumptions You are required to develop an ER model to represent the information requirements of company you are working for. You also need to write business rules and assumptions. Task 2: Create the Data Dictionary base on your ERD diagram.
In this project you will be provided a set of specifications to create an entity-relationship diagram...
In this project you will be provided a set of specifications to create an entity-relationship diagram and design accompanying table layout using sound relational modeling concepts and practices. The relationships between the entities and the attributes for the entities will be identified and described. This database will provide the foundation for the follow-on project. The following paragraphs provide the background and summary of the business requirements. You are a database consultant with Premier Software, LLC and have been assigned to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT