Higher Nationals In Computing Database Design And Development Assignment.pdf

25 0 0
Tài liệu đã được kiểm tra trùng lặp
Higher Nationals In Computing Database Design And Development Assignment.pdf

Đ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

Trang 1

Higher Nationals in Computing

Database Design and Development

ASSIGNMENT No.2

Learner9s name: NGUYEN MINH TAN

Assessor name: NGUYEN VAN SON

Trang 2

ASSIGNMENT 2 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing

Unit number and title Unit 04: Database Design & Development

Submission date 2 March 2022 Date Received 1st submission 2 March 2022

Student Name Nguyen Minh Tan Student ID GCS210760

Class GCS1001A 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 thmaking a false declaration is a form of malpractice

Student’s signature Grading grid

Trang 3

Summative Feedback: Resubmission Feedback:

Signature & Date:

Trang 4

ASSIGNMENT 2 BRIEF

Qualification BTEC Level 5 HND Diploma in Computing

Unit number Unit 04: Database Design & Development Assignment title Student Grading System

Academic Year 2022

Unit Tutor Nguyen Van Son

Issue date 2 March 2022 Submission date 2 March 2022

IV name and date

Submission Format:

Format: This assignment is an Individual assignment and specifically including 2 documents:

(1) sql file of your code and represent your code to your mananger (tutor) (2) a report document

You must use font Calibri size 12, set number of the pages and use multiple line spacing at 1.3 Margins must be: left: 1.25 cm; right: 1 cm; top: 1 cm and bottom: 1 cm The reference follows Harvard referencing system The recommended word limit is 2.000-2.500 words You will not be penalized for exceeding the total word limit The cover page of the report has to be the Assignment front sheet 2.

Submission Students are compulsory to submit the assignment in due date and in a way requested by the Tutors The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/

Note: The Assignment must be your own work, and not copied by or from another student or frombooks etc If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style Make sure that you know how to reference properly, and that understand the guidelines on plagiarism If you do not, you definitely get fail

Unit Learning Outcomes:

LO2 Develop a fully functional relational database system, based on an existing system design LO3 Test the system against user and system requirements

LO4 Produce technical and user documentation

Trang 5

Assignment Brief and Guidance:

You are employed as a Database Developer for a large IT consultancy company The company has been approached by FPT university which is expanding due to the growth of the number of students FPT is currently facing difficulties in dealing with managing the university It decided to develop several academic

systems to manage the university easier including: Online Library system, Student Grading System, Attendance System, CMS System, Scheduling System, Enrolment Systems, and so on

You are tasked to select one of those systems to develop database for FPT university Your tasks are to: Work with FPT to find out about current requirements for each system

Analyze the requirements and produce clear statements of user and system requirements Design a relational database system using appropriate design tools and techniques Develop a fully functional relational database system, based on an existing system design Test the system against user and system requirements

Produce technical and user documentation

Part 2 (Assignment 2)

Once the designs have been accepted by your manager you have been asked to:

1 Develop the database system using evidence of user interface, output and data validations and querying across multiple tables

You want to include more than just the basics so you will implement a fully functional database system which will include system security and database maintenance features

You have decided to implement a query language into the relational database system The developed system will be demonstrated to your manager

Your manager has asked you to include in the report:

2 Assessing whether meaningful data has been extracted through the use of query tools to produce appropriate management information

3 Evaluating the effectiveness of the database solution in relation to user and system requirements, and suggest improvements

4 Once the system has been developed, you will test the system and your manager will complete a witness statement indicating how your tests are performing against user and system requirements You will produce a brief report assessing the effectiveness of the testing, including an explanation of the choice of test data used

5 Lastly you will produce technical and user documentation which will be given to the company You want to provide some graphical representations for ease of reference in the technical guide, so you have decided to produce a technical and user documentation for a fully functional system, including diagrams showing movement of data through the system, and flowcharts describing how the system works

Trang 6

Learning Outcomes and Assessment Criteria

LO2 Develop a fully functional relational database system, based on an existing system design

LO3 Test the system against user and system requirements

LO4 Produce technical and user documentation

P2 Develop the database system with evidence of user interface, output and data validations, and querying across multiple tables

P3 Implement a query language into the relational database

system

M2 Implement a fully functional database system which includes system security and database maintenance

M3 Assess whether meaningful data has been extracted through the use of query tools to produce appropriate

management information

LO2 & 3

D2 Evaluate the effectiveness of the database solution in relation to user and system requirements, and suggest improvements

P4 Test the system against user and system requirements

M4 Assess the effectiveness of the testing, including an explanation of the choice of test data used

P5 Produce technical and user

documentation

M5 Produce technical and user documentation for a fully functional system, including ER Diagram and normalization statements and

describing how the system works

D3 Assess any future improvements that may be required to ensure the continued effectiveness of the database system.

Trang 7

Table of Contents

Chapter 1 - Develop the database system 1

1.1 Final Mock-up of the application: 1

1.1.1 Application: 1

1.1.2 ERD: 2

1.1.3 Physical Design: 3

1.1.4 User Interface: 4

1.2 Queries to create database with results: 5

Chapter 2 Produce queries 8

2.1 Queries to INSERT data with illustrations of final result: 8

2.2 Queries to UPDATE data with illustrations of final result: 9

2.3 Queries to DELETE data with illustrations of final result: 11

2.4 Queries to SELECT data with illustrations of final result: 12

2.5 Advanced queries: Stored procedures, triggers, functions: 14

2.6 Evaluate the effectiveness of the database solution: 15

Chapter 3 Test the system 16

3.1 Test cases: 16

REFERENCES 17

Trang 8

Page 1

Assignment Chapter 1 - Develop the database system

1.1 Final Mock-up of the application: 1.1.1 Application:

- The application that I used for designing the Grading System is the Microsoft SQL Server 2019 Express, a free, feature-rich version of SQL Server that may be used to study, create, and execute desktop, web, and small server applications, as well as for redistribution by independent software suppliers (ISVs)

Trang 9

Page 2

1.1.2 ERD:

- In order to meet the requirements, the ERD that I design must have the following entities and attributes as those entities and attributes are absolutely appropriate for being parts of the Grading System that the FPT University ever needed

- Here are the entities and attributes that I had mentioned above:

Student(studentID, classID, Name, Email, Phonenumber, Major, Course, Address)

It stores the information of students

Class(classID, testID, Totalamount, Course)

It stores the information of classes

Test(testID, Subject, Type, Duration, Date)

It stores the information of tests

Test Detail(testdetailID, studentID, testID, Grade)

It stores the information of tests9 details

Trang 10

Page 3

1.1.3 Physical Design:

- In order to meet the requirements, the Physical design that I design must have the following tables and rows as those tables and rows are absolutely appropriate for being parts of the Grading System that the FPT University ever needed

- Here are the tables and rows that I had mentioned above:

Unique

Foreign key Name Varchar(50) No Null N/A Phonenumber Int No Null,

Unique, Must > 0

N/A Major Varchar(50) No Null N/A Course Varchar(50) No Null N/A Address Varchar(50) No Null N/A

Unique

Foreign key Total amount Int No Null,

Must > 0 N/A Course Varchar(50) No Null N/A

Table: Test Detail

Field name Data type Property Description testdetailID Varchar(3) No Null,

Unique

Primary key studentID Varchar(10) No Null,

Unique Foreign key testID Varchar(3) No Null,

Unique Foreign key

Trang 12

Page 5

1.2 Queries to create database with results:

- Firstly, I created the database called 8Student_Grading_System9 and then I typed the command to use it

+ This is the system before I create the database:

+ This is the system after I had created the database:

- Then I started creating relevant tables, the first one is the table called 8Student9, this table contains the information of students

Trang 13

Page 6

- The next table I created is the table called 8Class9, this table stores the information of classes.

- The third table that I created is the table called 8Test9, so this table contains the information of tests that the students will be taken

- The last table that I created is the table called 8TestDetail9, this is the table that stores all the tests9 details from the tests that the students had taken

Trang 14

Page 7

- After I had created all the essential tables, I then created the Database Diagram

+ Step 1: I find the term 8Database Diagrams9 in the 8Student_Grading_System9 database, I then right-clicked it to find the button called 8New Database Diagram9 and left-click it

+ Step 2: After adding all the tables, I reorganized them and finished creating the database diagram

Trang 15

Page 8

2.1 Queries to INSERT data with illustrations of final result:

- So about the data insertion, I had inserted data into the four tables that I had created before + The first one is the table 8Student9:

+ The next one is the table 8Class9:

Trang 16

Page 9

+ The third table that I inserted data into is the table 8Test9:

+ The last table to be inserted data into is the table called 8TestDetail9:

Trang 17

Page 10

2.2 Queries to UPDATE data with illustrations of final result:

- So about the data updating, I had used the function 8update9 to update the table 8Student9, particularly, I had set the column 8Name9 to be Nguyen Ngoc Van Anh and the column 8 9 8classID9 to be 8GCS5007B9whenever the column 8studentID9 is 8GCS2101239

- The codes:

- The result is that one column has been affected:

Trang 18

Page 11

2.3 Queries to DELETE data with illustrations of final result:

- So in this data deletion, I have used this function in table 8TestDetail9 for deleting away whole row if there was an 8F9 in the column 8Grade 9

- The codes:

- The result is that there were three columns being affected:

- I have select * from TestDetail again and the result given out was that the three 8 9 8Grade9 columns that has 8F9 had made the corresponding rows to be deleted:

(7 rows remaining)

Trang 19

Page 12

2.4 Queries to SELECT data with illustrations of final result:

- About the data selection, I have simply used function select * from 8 …9 for the 4 tables 8Student9, 8Class , Test and TestDetail 9 8 9 8 9

- First one to be selected is the table 8Student9:

- The next one being selected is the table called 8Class9:

Trang 20

Page 13

- The third table that I selected data from is the table 8Test9:

- The last table that was selected data from is the table called 8TestDetail9:

Trang 21

Page 14

2.5 Advanced queries: Stored procedures, triggers, functions:

Trang 22

Page 15

2.6 Evaluate the effectiveness of the database solution:

Trang 23

- I then fixed the error by simply replaced the with to make it appropriate for the codes: 8;9 8 9,

Trang 24

Page 17

REFERENCES

1 SQL FOREIGN KEY Constraint 2022 SQL FOREIGN KEY Constraint [ONLINE] Available at: https://www.w3schools.com/sql/sql_foreignkey.asp [Accessed 02 March 2022]

2 Stored Query Expressions 2022 Stored Query Expressions [ONLINE] Available at: https://docs.oracle.com/database/121/CCAPP/GUID-45028739-AA18-4D55-B03A-22644EC2FAC0.htm#CCAPP9179 [Accessed 02 March 2022]

3 SQL DELETE Statement 2022 SQL DELETE Statement [ONLINE] Available at: https://www.w3schools.com/sql/sql_delete.asp [Accessed 02 March 2022] 4 SQL UPDATE Statement 2022 SQL UPDATE Statement [ONLINE] Available at:

https://www.w3schools.com/sql/sql_update.asp [Accessed 02 March 2022]

5 SQL Tutorial 2022 SQL Tutorial [ONLINE] Available at:

https://www.w3schools.com/sql/default.asp [Accessed 02 March 2022] 6 WilliamDAssafMSFT 2022 Rename a Database - SQL Server | Microsoft Docs

[ONLINE] Available at: databases/databases/rename-a-database?view=sql-server-

https://docs.microsoft.com/en-us/sql/relational-ver15#:~:text=If%20you%20are%20using%20SQL,rename%2C%20and%20then%20select%20Rename [Accessed 02 March 2022]

7 WilliamDAssafMSFT 2022 Delete columns from a table - SQL Server | Microsoft Docs [ONLINE] Available at: https://docs.microsoft.com/en-us/sql/relational-databases/tables/delete-columns-from-a-table?view=sql-server-

ver15#:~:text=In%20Object%20Explorer%2C%20locate%20the,Object%20dialog%20box%2C%20click%20OK [Accessed 02 March 2022]

Trang 25

Page 18

8 SearchDataManagement 2022 What is Microsoft SQL Server? A definition from WhatIs.com [ONLINE] Available at:

https://www.techtarget.com/searchdatamanagement/definition/SQL-Server [Accessed 02 March 2022]

9 Creating stored queries 2022 Creating stored queries [ONLINE] Available at: http://webhelp.esri.com/arcims/9.3/General/topics/author_stored_queries.htm#:~:text=A%20stored%20query%20is%20a,help%20you%20create%20stored%20queries [Accessed 02 March 2022]

10 w3resource 2022 MySQL Triggers - w3resource [ONLINE] Available at: https://www.w3resource.com/mysql/mysql-triggers.php [Accessed 02 March 2022]

11 SQL Shack - articles about database auditing, server performance, data recovery, and more 2022 How to use SQL Server built-in functions and create user-defined scalar functions [ONLINE] Available at: https://www.sqlshack.com/use-sql-server-built-functions-create-user-defined-scalar-

functions/#:~:text=A%20function%20is%20a%20set,can%20simply%20call%20that%20function [Accessed 02 March 2022]

12 SQL SELECT Statement 2022 SQL SELECT Statement [ONLINE] Available at: https://www.w3schools.com/sql/sql_select.asp [Accessed 02 March 2022]

Ngày đăng: 13/05/2024, 14:53

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan