Docsity

!622-Database design and, Assignments of Data Compression

Toggle sidebar
bg1
1
Nguyen Xuan Cong-GCH200253
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
Nguyen Xuan Cong
Student ID
GCH200253
Class
GCH0907
Assessor name
Han Minh Phuong
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
Cong
Grading grid
P1
M1
D1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download !622-Database design and and more Assignments Data Compression 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 Nguyen Xuan Cong Student ID GCH Class GCH0907 Assessor name Han Minh Phuong 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 Cong Grading grid

P1 M1 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Signature & Date:

A, INTRODUCTION:

I, Overview about the Problem:

I am employed as a Database Developer for a large IT consultancy company, which has been approached by Greenwich university. Due to the growth of the number of students, FPT want to expand their systems to deal with managing the university. I am tasked to select one of systems below to develop database for FPT university. Several academic systems to manage includes: Online Library system, Student Grading system, Attendance system, CMS system, Scheduling system, Enrolment system, etc. In this report, my desire is developing the Online Library system.

II, Requirements of the application:

Management process:

  • Student must login to the system to borrow book from library. Account has been provided before.
  • Students will borrow books by entering the title of the book.
  • The librarian will be responsible for lending, the librarian will enter the borrow date, return date, number of books borrowed, and student's information into the system.
  • Librarian will be able to see if the book is available in the library or is being borrowed by a student User requirements: This system can be use by teacher, student, and each object will have different permissions.
  • Librarian:
  • Accept or deny student transaction.
  • Overview transaction information and personal information of any student.
  • Send mail to student with returning date notification or any books that are available.
  • Student:
  • Login to the system.
  • Borrow book from library.
  • View the transaction hystory. System requirements:
  • Each user has separate functions in the system such as librarian who can manage online library borrowing. Student can only view books, self-information, and transaction history.
  • Any user can log in or log out easily.
  • The system is designed with user-friendly interface
  • Data of users is important, so security will be paid attention when designing the system: password is encrypted, data transmission must be secure.

B, DESIGN THE RELATIONAL DATABASE SYSTEM:

I, Requirement analyzation:

According to user requirement, the student can borrow book from library. Student has to login name and password (which are pre-provided) to access the system. The student has to provide the name of the book they want to borrow. Before a book is booked, the validity of the availability is checked. If the book is available, the transaction will be confirmed with IDs along with other details of the student. The information of transaction such as order quantity, borrowing date and returning date will be created as record in the borrowing table. The librarian can access to overview transaction information they also can send mail to student with returning date notification or any books that are available. List data should be stored:

  • Student’s information: ID, first name, last name, phone number, email.
  • Login: login ID, username, password.
  • Librarian information: ID, first name, last name, phone number, email.
  • Book information: ID, name, publisher, author, date published.
  • Transaction: student ID, librarian ID, book ID.
  • Transaction detail: book ID, borrowing date, returning date. List of entities should be: Student, Librarian, Book, Transaction, Transaction detail, Login.

III, Description of Tables in the database system:

  1. Student: This table consists of all the detail of the student. The information stored in this table includes: student ID, firstname, lastname, phone, email. Constraint: primary key is the student ID to make sure that each student has a unique and non- duplicate ID, check student phone number and email format.
  2. Login: This table consists of the login information of each student. The information stored in this table includes: Login_ID, login_username, Login_Password, student_ID or Librarian_ID. Constraint: primary key is the Login_ID and foreign key are student_ID reference with student_ID in Student table, Librarian_ID reference with Librarian_ID in Librarian table to make sure each student or librarian has unique username and password to login.
  3. Book: This table consists of details about all the books. The information stored in this table includes: book ID, book name, publisher, author, date published. Constraint: book ID is the primary key to make sure that each book has a unique and non-duplicate ID.
  4. Librarian: This table consists of all the detail of the librarian. The information stored in this table includes: librarian ID, first name, last name, phone, email. Constraint: Librarian ID is the primary key to make sure that each librarian has a unique and non- duplicate ID, check librarian phone number and email format.
  5. LMS_Transaction: This table consists of all the detail of the transaction. The information stored in this table includes: transaction_ID, student_ID, librarian_ID. Constraint: primary key is transaction _ID. Foreign key student_ID references with student_ID in Student table. Foreign key librarian_ID references to Librarian table that indicates librarian who manage books.
  6. LMS_Transaction_Detail : This table consists of all the detail about borrowing book. The information stored in this table includes:T_Detail_ID, book_ID, transaction_ID, borrowing_date, returning_date. Constraint: primary key is T_Detail_ID, foreign key is book_ID reference with book_ID in Book table to show what books student borrow. Second foreign key is transaction _ID reference with transaction _ID in LMS_Transaction table.

IV, Physical design:

  • Student: student ID are string and number and must be exactly 9 character so data type is char (9); student first name (no need to type in so allow null) and last name are string, max characters is 10 and can have Unicode so data type is nvarchar(10); student phone are string of number and must be exactly 10 number so data type is char (10); student email are string, can have Unicode and can have 50 characters so data type is nvarchar(50).
  • Librarian: Librarian ID are string and number and must be exactly 9 character so data type is char (9); Librarian first name (no need to type in so allow null) and last name are string, max characters is 10 and can have Unicode so data type is nvarchar (10); Librarian phone are string of number and must be exactly 10 number so data type is char (10); Librarian email are string, can have Unicode and can have 50 characters so data type is nvarchar(50).
  • With the insert statements below, produced these following errors. Email is inputted incorrectly, email must like [email protected].

C, CONCLUSION:

Nowadays SQL server is one of the most database design tool in the world, and it coming more and more common. This report gives me a chance to practice with it. In this report, I presented users; requirements, analyzed it, and designed it with explanations using SQL server. The essential necessities that the problem needs were all successfully delivered and implemented.

D, REFERENCES:

Technopedia, 2017. What is Data Validation? - Definition from Techopedia. [online] Techopedia.com. Available at: https://www.techopedia.com/definition/10283/data-validation [Accessed 12 October 2021].