You are on page 1of 2

Sri Lanka Institute of Advanced Technological Education

Higher National Diploma in Information Technology

Relational Database Management Systems

Second year

Assignment 01(group assignment)


(50 Marks)
01) Conceptual Modeling

Part 1
Consider a company called ABC Consolidated which contains many banks under it.

• Each bank contains a code, name and a registration number. The code and
name are unique.
• The bank has many branches which contain a branch number, branch name
and an address. The branch number is unique for each bank.
• Each bank contains many accounts. An account contains an account number,
balance, a customer and an account type
• Each account type contains a name, a code and a description. Account code is
unique each account type.
• Account type may be savings or current. The savings account type contains an
interest rate. The current account type has max cheques which pertain to
maximum cheques that can be written per month.
• Each customer has a customer number, NIC number, name, address, phone
and PIN. Both customer number and NIC are unique.
• There are many transactions processed in a bank. Each transaction has a
transaction id, date, & time of transaction, amount and responsible party or
application for the transaction (i.e. bank, ATM, teller, cheque, etc…) and
description
• Each transaction has one or many accounts that it affects and the type of affect
that the transaction (either a credit/ debit) has on the account.

Draw an E-ER diagram for the above mentioned requirements.

Part 2
The requirements for the library catalog are as follows

• The library contains a list of items


• Every item has a number, title, and a description
• Every item is identified by the item number
• Items are classified into books, periodicals and software & manuals
• Every book has authors
• An author has an id, (unique) a first name, a last name, and other names
• An author can write many books and a book can have many authors
• Every periodical has a publisher and frequency (e.g. daily, weekly, monthly,
quarterly and yearly)
• Every software & manual has a manufacturer and a version
• Books are further classified into text books and published books
• Periodicals are classified into Magazines and News papers
• Every text book has a semester, year and section
• Every published book has an edition
• The items can have multiple copies which called copy of item
• Copy of item is identified by the access number

Draw an E-ER diagram for the above mentioned requirements.


(20 Marks)

02.) Map the E-ER diagrams in exercise 01 (part 1 & part 2) to the relational schema
(15 Marks)

03.) Create Relational database for the above schemas in exercise 02.
(15 Marks)

You might also like