Docsity

Database System Design for an Online Library: Queries, Tables, and Security, Study Guides, Projects, Research of Technology

Toggle sidebar
bg1
ASSIGNMENT 2 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
P2 P3 P4 P5 M2 M3 M4 M5 D2 D3
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24

Partial preview of the text

Download Database System Design for an Online Library: Queries, Tables, and Security and more Study Guides, Projects, Research Technology in PDF only on Docsity!

ASSIGNMENT 2 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

P2 P3 P4 P5 M2 M3 M4 M5 D2 D

Summative Feedback:

Resubmission Feedback:

Grade: Assessor Signature: Date: Signature & Date:

Introduction In this assignment, a database of online library system has been deployed on SQL server based on query language. This database provides, allows editing, deleting, and inserting necessary information to maintain the library such as personal information of members, staff, login, book information, loan vouchers. It is also designed with statistics to help administrators easily manage and know the status of the library. Here, a complete mock-up along with a relational database has also been designed and displayed. Testing is also conducted to fix bugs. Finally, a technical document was developed to guide users in using this system based on the mock-up.

1. Develop the database system 1.1 Final Mock-up of the application Based on the old mock-up designs in the previous assignment, a full blueprint of the system was built. This update provides new functions for querying statistics for library management. Figure 1: Login interface

Figure 2: Main interface for staff Figure 3: Information of staff

Figure 6: View information of readers Figure 7: CRUD borrowing

Figure 8: Borrow Detail Figure 9: Return Book

Figure 12: Information of reader 1.2. Queries to create database with results Based on the designs approved by the CEO, a database system will be generated by the query that creates the table. They will be displayed with the results once run. Figure 13: Query to create database ASM and table Member

To build a database system, a database must be created in SQL Server, ASM is the database created and used to store this library system. The tables will be created by the queries so that the field names, data types, data validation are designed. Figure 14: Table Member Figure 15: Query to create table Staff, Login and Author Figure: Table Staff

Figure 19: Table Book Figure 20: Table Borrow Figure 21: Query to create table BorrowDetail and ReturnBook

Figure 22: Table BorrowDetail Figure 23: Table ReturnBook Figure 24: Final diagram

Figure 28: Table Author Figure 29: Table Staff Figure 30: Table Book Figure 31: Table ReturnBook Figure 32: Table BorrowDetail

1.4. Security Figure 33: Query to create role Staff to login Figure 34: Query to create role Member

2. Produce queries 2.1. Insert into, delete, update Users can manipulate operations such as insert, delete, update on the database. With Insert, user uses Insert into to add data to the Borrow and BorrowDetail tables. Figure 33: Query to insert Figure 35: Result at Borrow Figure 36: Result at BorrowDetail

A title is deleted at Book and result Figure 37: Query to delete Figure 38: Result at Book With update, the record in the Author table with ID = 126 will be edited Lastname and the result. Figure 39: Query to update Figure 40: Result at Author