




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























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