1 - Practice Assignment (ER - Diagram)
1 - Practice Assignment (ER - Diagram)
1 - Practice Assignment (ER - Diagram)
2. A university have many colleges where as each college belongs to only that university.
Each college is offering many degrees where as each degree is offered by only single
college in that university. One college can have many students but one student can only be
registered in one college. One student can have study many courses where as many
courses can be taught by many students. 5 Marks
3. A bank can have many branches where as each branch belongs to one bank. Each branch
can approve many loans where as each loan can be approved by single branch 5 Marks
4. A publishing company produces scientific books on various subjects. The books are written
by authors who specialize in one particular subject. The company employs editors who,
not necessarily being specialists in a particular area, each take sole responsibility for
editing one or more publications. A publication covers essentially one of the specialist
subjects and is normally written by a single author. When writing a particular book, each
author works with on editor, but may submit another work for publication to be
supervised by other editors. To improve their competitiveness, the company tries to
employ a variety of authors, more than one author being a specialist in a particular
subject.
6. A database is to be designed for a Car Rental Co. (CRC). The information required includes
a description of cars, subcontractors (i.e. garages), company expenditures, company
revenues and customers. Cars are to be described by such data as: make, model, year of
production, engine size, fuel type, number of passengers, registration number, purchase
price, purchase date, rent price and insurance details. It is the company policy not to keep
any car for a period exceeding one year. All major repairs and maintenance are done by
subcontractors (i.e. franchised garages), with whom CRC has long-term agreements.
Therefore the data about garages to be kept in the database includes garage names,
addressees, range of services and the like. Some garages require payments immediately
after a repair has been made; with others CRC has made arrangements for credit facilities.
Company expenditures are to be registered for all outgoings connected with purchases,
repairs, maintenance, insurance etc. Similarly the cash inflow coming from all sources - car
hire, car sales, insurance claims - must be kept of file.CRC maintains a reasonably stable
client base. For this privileged category of customers special credit card facilities are
provided. These customers may also book in advance a particular car. These reservations
can be made for any period of time up to one month. Casual customers must pay a deposit
for an estimated time of rental, unless they wish to pay by credit card. All major credit
cards care accepted. Personal details (such as name, address, telephone number, driving
licence, number) about each customer are kept in the database.
8. A relational database is to be designed for a medium sized Company dealing with industrial
applications of computers. The Company delivers various products to its customers
ranging from a single application program through to complete installation of hardware
with customized software. The Company employs various experts, consultants and
supporting staff. All personnel are employed on long-term basis, i.e. there are no short-
term or temporary staff. Although the Company is somehow structured for administrative
purposes (that is, it is divided into departments headed by department managers) all
projects are carried out in an inter-disciplinary way. For each project a project team is
selected, grouping employees from different departments, and a Project Manager (also an
employee of the Company) is appointed who is entirely and exclusively responsible for the
control of the project, quite independently of the Company's hierarchy. The following is a
brief statement of some facts and policies adopted by the Company.