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...
Create an Entity relationship diagram (ERD) conceptual model for this case. VINEYARD HOLDINGS AND GRAPE VARIETIES...
Create an Entity relationship diagram (ERD) conceptual model for this case. VINEYARD HOLDINGS AND GRAPE VARIETIES VVI’s vineyard sources its wine from ten plots of land in separate locations from two acres to twenty acres. Each vineyard has its own unique name, such as Rattlesnake Canyon, Red Fox, Theresa’s, etc. and is either owned by VVI or by an independent third party. Each is managed by a single employee. No employee manages more than one vineyard. The location and size,...
Draw an ERD diagram for Hair Saloon and describe its relationship
Draw an ERD diagram for Hair Saloon and describe its relationship
Create an ERD based on the following business rules and requirements. Make sure that the ERD...
Create an ERD based on the following business rules and requirements. Make sure that the ERD follows good database design practices covered in Chapter 6. use an online visual paradigm tool to create the ERD NOST offers many different tours. For each tour, the tour name, approximate length (in hours), and fee charged is needed. Tours are classified into five categories: family friendly, adventure, hiking, camping, and water activities. Guides are identified by an employee ID, but the system should...
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...
Use following case and create Entity-Relationship Diagrams using the Crow’s Feet method for each. Each ERD...
Use following case and create Entity-Relationship Diagrams using the Crow’s Feet method for each. Each ERD should be completed on a separate sheet of paper, if drawn by hand. If additional assumptions are made for any of your 2cases, be sure to document the additional business rules and include them with your ERDs. Entity-Relationship Diagram : TEXTBOOK REVIEWS Your website would like to add the ability for school BIT students to provide reviews for textbooks they have previously used. Using...
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...
Question 1 Draw a Entity Relationship Diagram Snooty Fashions is an exclusive custom fashion designer business....
Question 1 Draw a Entity Relationship Diagram Snooty Fashions is an exclusive custom fashion designer business. The Snooty Fashions Operations Database will keep track of the following: • For each designer: a unique designer identifier and unique SSN as well as the name (composed of first and last name); • For each customer: a unique customer’s identifier as well as his or her name and multiple phone numbers; • For each tailoring technician: a unique SSN as well as his...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT