1. Trang chủ
  2. » Công Nghệ Thông Tin

Assignment 2 database (1622) Greenwich

36 538 10

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Note: Nếu muốn support C, C#, Networking, Database, project web, 1633, security_zalo 0962.986.805 or fb https://www.facebook.com/profile.php?id=100080073517431. Assignment 2 môn Database (1622) đại học Greenwich, bài luận đạt điểm Merit năm 2021, có trích dẫn học thuật chuẩn Harvard, liên hệ với mình nếu bạn muốn support với mức giá phù hợp. Develop the database system, Final Mockup of the application, Queries to create database with results, Security, Produce queries, Advanced query, Evaluate the effectiveness of the database solution, Test case, Flowchart to show how the system works

ASSIGNMENT FRONT SHEET Qualification TEC Level 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  Resubmission Feedback:  Summative Feedback: 2.1 Grade: Signature & Date: Assessor Signature: Date: Table of Contents Introduction 1 Develop the database system 1.1 Final Mock-up of the application 1.2 Queries to create database with results 1.3 Data in database system 12 1.4 Security 14 Produce queries 16 2.1 Insert into, delete, update 16 2.2 Select 18 2.3 Advanced query 19 2.4 Evaluate the effectiveness of the database solution 24 Test the system 24 3.1 Test case 24 3.2 Flowchart to show how the system works 25 Conclusion 32 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 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 staf Figure 3: Information of staf Figure 4: CRUD (Create/Read/Update/Delete) information of book (part 1) Figure 5: CRUD information of book (part 2) Figure 6: View information of readers Figure 7: CRUD borrowing Figure 8: Borrow Detail Figure 9: Return Book Figure 10: Statistic activity Figure 11: Main interface for reader 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 Figure 44: Query to select number of times staf lent books and result 2.3 Advanced query Figure 45: Query to create procedure Check_borrow_activity and result 19 Figure 46: Query to create procedure CheckOperation 20 Figure 47: Query to create procedure All_Borrow 21 Figure 48: Query to create procedure check status and cost in Borrow and result 22 Figure 49: Query to create table trigger tg_updel Figure 50: Test and result of trigger tg_updel 23 2.4 Evaluate the effectiveness of the database solution Based on the requirements of the online library, important tables have been built that are Login to log in, distinguish between members and employees, Member to build basic information of members such as name, ID, date birth, phone number; Staff includes ID information, name of staff; basic information of the book and the corresponding author's name, price, and quantity Regarding the loan slip, tables are built to take on different roles, Borrow displays information of the borrower, borrowing date, return date, BorrowDetail records details of the type of book, ReturnBook records information when returning books The datavalidation is also set up so that the information entered is correct, the information in the secondary table will be edited or deleted if the information in the main table is edited or deleted Essentially, these tables make the library easy to operate In addition, users can add, edit, delete, read data Next, statistical operations use select, a procedure that makes it easy for managers to control library activities Trigger helps to save Member information when updating or deleting records A user-friendly mock-up that has been built along with a detailed instruction on how it works is necessary for the users to fully understand the system's features and usage In short, the system has met most of the user's needs Test the system 3.1 Test case To see performance, find errors and fix them, a test plan is essential for the database Table 1: Test plan Test Test description ID Select table constraint Format_PhoneNumber check of Table Member On update cascade of IDstaff in Login Procedure Check_Borrow_activity Test Steps Test data Expected Results Select all table Select table of database Enter ‘011111111111111’ PhoneNumber All table is displayed Error Update ID of Staff Execute command At IDstaff = ‘G111’ of Login becomes ‘G113’ All vouchers borrowed from March to June 2021 Update Staff set ID=’G113’ where ID = ‘G111’ 2021,2021,3,6 24 Procedure CheckOperation Procedure All_Borrow Procedure Check_ReturnMoney Trigger tg_updel Execute command Execute command Execute command Insert, update,delete data and select table up_del Top types of books with the greatest total value All information about borrowing ID of member,borrow,Title,Cost,Status insert into Member values Information of Delete, update ('GCH012','Hoang','Anh','2002- activities 1-1','0578427468','Yen Bai') update Member set DoB = '2003-1-1' where ID = 'GCH012' delete from Member where ID = 'GCH012' Table 2: Test Result Test ID Test description Select table constraint Format_PhoneNumber check of Table Member On update cascade of IDstaff in Login Procedure Check_Borrow_activity Procedure CheckOperation Procedure All_Borrow Procedure Check_ReturnMoney Trigger tg_updel Virtual result All table is displayed Error Pass/Fail Pass Pass Login table unchanged Fail All vouchers borrowed from March to June 2021 Error Pass All information about borrowing ID of member,borrow,Title,Cost,Status Error Pass Pass Fail Fail 3.2 Flowchart to show how the system works In order for users to understand the system, a technical document to guide how to use the system has been developed 25 Figure 51: Login interface Users will choose the Staff or Member role and enter their personal account and password to log in Format of Account is email of university For example: hoangnam@fe.edu.vn Figure 52: Main interface of staf 26 The main interface of the staff is displayed with options, click to select the corresponding function With options 1, 3, 4, users can search for IDs to update, delete, and insert information of objects For option 2, the user can only view the information Format ID is char (4), ‘G[0-9][0-9][0-9] For example: G111 Figure 53: Option (part 1) Figure 54: Option (part 2) 27 Format Quantity, Cost is >0, Publication Year < present Figure 55: Option Figure 56: Option 28 Figure 57: Option (part 1) Figure 58: Option (part 2) 29 Figure 59: Option (part 3) Format Status is Good or Bad Figure 60: Option with functions 30 Users can use different options to view statistical information, for option 5, time points must be entered including month and year of each landmark for statistics, for option 6, the number must be entered For member accounts, users must enter personal information to proceed with borrowing books Some of the formats are ID: characters and follow the pattern G_H[0-9][0-9][0-9] For example: GCH001 The date of birth is less than the current date, the phone number consists of 10 digits from 0-9 Figure 61: Member interface Figure 62: Information of member 31 Conclusion In this assignment, a basic database has been built for an online library system of FPT University, all necessary tables along with statistical operations, adding, editing and deleting have been built in a query language on SQL server The system grants permissions for user roles, Staff and Member, basically, the system has fully met the needs of users The interface is designed to be simple but full of options needed for library management and statistics for library development In the future, the database will be expanded and add many new statistical queries for users 32 Powered by TCPDF (www.tcpdf.org) Index of comments 2.1 You have completed the ASM report The primary sections of the P-criteria include: Building interfaces Creating simple to complex manipulations and queries statements (including triggers) and system testing by primary test cases Building complete user documentation You also made the database security mode by delegating user permissions on the database However, as explained in the theoretical lecture, this user delegation needs to be done at the application layer, when user delegation at the database management system only applies to users who design and administer the database Whether You already have an evaluation of the database, but you only evaluated the effectiveness of the database design option, did not mention future improvements Powered by TCPDF (www.tcpdf.org) ... 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... 1 Develop the database system 1.1 Final Mock-up of the application 1.2 Queries to create database with results 1.3 Data in database system ... when user delegation at the database management system only applies to users who design and administer the database Whether You already have an evaluation of the database, but you only evaluated

Ngày đăng: 28/03/2022, 12:45

Xem thêm:

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w