Docsity

Assignment 1: unit 4 Database, Assignments of Database Programming

Toggle sidebar
bg1
ASSIGNMENT 1 FRONT SHEET
Qualification TEC Level 5 HND Diploma in Computing
Unit number and title Unit 04: Database Design & Development
Submission date Date Received 1st submission
Re-submission Date Date Received 2nd submission
Student Name Student ID
Class Assessor name
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Grading grid
P1 M1 D1
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download Assignment 1: unit 4 Database and more Assignments Database Programming in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing Unit number and title Unit 04: Database Design & Development Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Student ID Class Assessor name Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Grading grid

P1 M1 D

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date: Signature & Date:

Contents

I. INTRODUCE............................................................................................................................................................................................................... 4 II. SYSRTEM REQUIREMENTS........................................................................................................................................................................................ 5

  1. Real world scenario.............................................................................................................................................................................................. 5
  2. Data requirements for storage............................................................................................................................................................................. 5
  3. Relationship between entities.............................................................................................................................................................................. 6 III. DESIGN RELATIONAL DATABASE SYSTEM FOR A SUBSTANTIAL PROBLEM (P1)...................................................................................................... 9
  4. ER Diagram........................................................................................................................................................................................................... 9
  5. Convert ER Diagram to Relation Diagram........................................................................................................................................................... 11
  6. Relational database system................................................................................................................................................................................ 11 IV. SYSTEM INTEERFACE DESIGN................................................................................................................................................................................ 18 V. CONCLUSION......................................................................................................................................................................................................... 24 VI. REFERENCE LIST.................................................................................................................................................................................................... 24

I. INTRODUCE

Databases and database systems are an essential component of life in modern society: most of us encounter several activities every day that involve some interaction with a database. The objective of this report is to design a relational database system using appropriate design tools and techniques, with clear statements of user and system requirements. In this assignment, I will design a relational database system for the library management system, with clear statements of user and system requirements.

II. SYSRTEM REQUIREMENTS

1. Real world scenario

FPT University is expanding due to the growth in the number of students. However, FPT is currently facing difficulties in dealing with managing the university. And I will design a relational system for the library management system of BTEC FPT International College. Library management system is to reduce and solve the cumbersome manual management, so that the library can rise to a perfect electronic management. This is a useful information and information system to meet the research and learning needs of students and lecturers in the school. The library of BTEC FPT International College currently has many books updated daily to serve the needs of students in borrowing books. System objectives are: Librarian, it provides all the details of the borrower, as well as the details of the library inventory; for students or ordinary users, it has two functions includes borrowing and returning books; the administrator can also record new books, delete old books and so on. Visitors can also enter the system without a registering user, but there are certain functional limitations. Library activities can be described as follows:

  • Once a book is imported, it will be saved by the librarian to the system including information: book ID, title, publisher, author, quantity, price, inventory date, type of book and book placement.
  • A student who wants to borrow a book must have a student card that includes the student ID, student name, and major. Each student has only one student ID card. Students need to borrow books to know the loan date and return date. Besides, students need to provide additional email, phone number to contact in case of need.
  • Library books are divided into categories such as: economics, foreign languages, information technology, etc.

2. Data requirements for storage

Entity Description of Entity Attribute Description of Attribute Book All of books in library BookID It is a unique identifier for each book in the library BookName Name of Book

Each category may include multiple books. Each book only belongs to one category. Each book can include multiple invoices. Each invoice belongs to only one book. Each student may have multiple invoices. Each invoice belongs to only one student.

Each library branch may have multiple books. Each book belongs to only one library. Each library branch may have more than one library manager. Each librarian only works in one library. A single librarian can manage multiple invoices, but an invoice is managed by only one.

ER Diagram

2. Convert ER Diagram to Relation Diagram

CATEGORY (CategoryID, CategoryName) BOOK (BookID, BookName, BookDescription, Author, Publisher, CategoryID, LibraryID) STUDENT (StudentID, StudentName, Class, StudentEmail) BILL (BillID, BillName, BookID, LibrarianID, StudentID) LIBRARY (LibraryID, LibraryName, LibrarianAddress) LIBRARIAN (LibrarianID, LibrarianName, LibrarianID)

3. Relational database system

 Create table LIBRARYBRANCH:

 Create table CATEGORY:  Create table BOOK:

 Create table STUDENT:

 Relational database system:

 Book Register

 Librarian Register