Group Assign based on ERDs

advertisement
ASSIGNMENT I – DBMS
Submission Date: 25th Feb 2015
Note : Consider the case studies given below and do the following:




Create an ER diagram covering all requirements depicted in the case study.
Write necessary DDL commands to implement the schema of ERD.
Create a data dictionary for your system.
Show your tables with few records in it.
Write down your assumptions, if any.
Your ERDs must be neatly sketched.
ROLL No. 1 to 10
1. Consider a university database for the scheduling of classrooms for final exams. This database
could be modeled as the single entity set exam, with attributes course-name, section-number,
room-number and time. Alternatively, one or more additional entity sets could be defined, along
with relationship sets to replace some of the attributes of the exam set, as
 Course with attributes name, department and c-number
 section with attributes s-number and enrollment, and dependent as a weak entity set on course
room with attributes r- number, capacity ,and building
Show an E-R diagram illustrating the use of all three additional entity sets listed
2. Assume you are to compose database requirements of a wholesale dealer for audio, video
consumer equipment from different manufacturers (brands).Customers are the various retail
outlets (retailers). Wholesaler extends credit to old customer and special discounts are offered to
new customers (retailers). You have to generate an E-R model for the above DBMS application
with the scope restricted to details (queries on) of customers (retailers), products stocked and their
price discounts and credits offered etc.
ROLL No. 11 to 20
3. The owner of a computer hardware repair shop would like to keep track of the repair jobs for
computers they repair, the items or tools used for each repair job, the labor costs for each repair
job, the repair-man doing repair job, and the total cost of repair job.
When customers bring their computers for repair work, they make advance deposit for the repair
job and are given a date to return and uplift their computer. Repair-man then repair customers’
computers based on the repair job, and detail the labor costs and the items used for each repair
job.
When customers return they pay the remaining cost of the repair job, collect a receipt for their
payment, and uplift the repaired computer using this payment receipt.
4. Consider a Railway Reservation System in which the developer wants to keep track of all the
Trains, Station information, Schedule information (to track which train arrives at which station at
what time), Ticket booking by the passengers.
Identify the possible entities in the system and the relationship among them. There should be a
way to make and cancel the reservation using as and when required. The tickets generated by the
system should have a PNR number.
ROLL No. 21 to 30
5. The director of a college wants an application that will help their departments keep track of the
courses, lecturers conducting these courses, students registered for the courses run by the college
and their results.
Users (students, lecturers, and other college staff) must login to the application to gain access, and
the application must keep track of user logins/logouts. In addition, users must have different
levels of access (Read, Update, Delete etc), which will determine their access to different parts of
the application.
6. Assume you are to compose database requirements of a wholesale dealer for audio, video
consumer equipment from different manufacturers (brands).Customers are the various retail
outlets (retailers). Wholesaler extends credit to old customer and special discounts are offered to
new customers (retailers). You have to generate an E-R model for the above DBMS application
with the scope restricted to details (queries on) of customers (retailers), products stocked and their
price discounts and credits offered etc.
ROLL No. 31 to 40
7. Suppose you are given the following requirements for a simple database for the National Hockey
League (NHL):
 The NHL has many teams,
 Each team has a name, a city, a coach, a captain, and a set of players,
 Each player belongs to only one team,
 Each player has a name, a position (such as left wing or goalie), a skill level, and a set of
injury records,
 A team captain is also a player.
 A game is played between two teams (referred to as host_team and guest_team) and has a
date (such as May 11th, 1999) and a score (such as 4 to 2).
Construct a clean and concise ER diagram for the NHL database. List your assumptions and
clearly indicate the cardinality mappings as well as any role indicators in your ER diagram.
8. Consider the website for a book seller such as Amazon. Develop an ER diagram of a book
database for this web site. Show all possible entities and relationships. Use subtypes wherever
possible. Constrain your design to the needs of someone who is looking for books to purchase.
Think about the structure of the database of books, authors, subjects, related topics, publishers
when you want to select a book of your need (say DBMS).
ROLL No. 41 to 50
9. Bob and Martin opened a CD Company, Inc., a family-owned business that sells audio CDs of
classic and best-selling children's stories. The Company has a number of distributors from whom
they purchase the CDs for resale. For selling purposes, the CDs are classified by appropriate age
groups: 4–6; 7–10; and 11–14. Roughly 30% of total sales occur within their single retail store;
the remaining 70% are through mail order. Sales are particularly strong during the summer
vacation months and Christmas shopping season. CD, Inc. has hired you to design a relational
database to manage all their data.
The ERD should reflect the following:
o
o
The Company offers its customers a purchasing incentive: all CDs are always discounted
40% from the retail price.
The Company likes to store the names of “potential” customers, even if they’ve never done
business with them.
Three times each year, the Company sends out 5–6 page brochures to advertise their top-selling
and latest-release CDs, including general descriptions of each CD.
10. Consider a Railway Reservation System in which the developer wants to keep track of all the
Trains, Station information, Schedule information (to track which train arrives at which station at
what time), Ticket booking by the passengers.
Identify the possible entities in the system and the relationship among them. There should be a
way to make and cancel the reservation using as and when required. The tickets generated by the
system should have a PNR number.
.
ROLL No. 51 to 60
11. Assume you are to compose database requirements of a wholesale dealer for audio, video
consumer equipment from different manufacturers (brands).Customers are the various retail
outlets (retailers). Wholesaler extends credit to old customer and special discounts are offered to
new customers (retailers). You have to generate an E-R model for the above DBMS application
with the scope restricted to details (queries on) of customers (retailers), products stocked and their
price discounts and credits offered etc.
12. Suppose you are given the following requirements for a simple database for the National Hockey
League (NHL):
 The NHL has many teams,
 Each team has a name, a city, a coach, a captain, and a set of players,
 Each player belongs to only one team,
 Each player has a name, a position (such as left wing or goalie), a skill level, and a set of
injury records,
 A team captain is also a player,
 A game is played between two teams (referred to as host_team and guest_team) and has a
date (such as May 11th, 1999) and a score (such as 4 to 2).
Construct a clean and concise ER diagram for the NHL database. List your assumptions and
clearly indicate the cardinality mappings as well as any role indicators in your ER diagram.
Download