0% found this document useful (0 votes)
44 views66 pages

GJNK

The document provides details of an internal verification of assessment for a student named Dewmi Sandunika Heenatigala enrolled in the High National Diploma in Computing program. The assessor assessed the student's work for Unit 4: Database Design & Development and awarded grades for various assessment criteria. The internal verifier reviewed the assessor's evaluation to ensure accurate and fair assessment. The internal verifier confirmed that the assessment was accurate and the feedback provided to the student was constructive and identified opportunities for improvement. The document also includes an assignment brief for Dewmi Sandunika Heenatigala for the same unit, which involves designing a database system for a transport company and producing documentation.

Uploaded by

dewmi sandunika
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views66 pages

GJNK

The document provides details of an internal verification of assessment for a student named Dewmi Sandunika Heenatigala enrolled in the High National Diploma in Computing program. The assessor assessed the student's work for Unit 4: Database Design & Development and awarded grades for various assessment criteria. The internal verifier reviewed the assessor's evaluation to ensure accurate and fair assessment. The internal verifier confirmed that the assessment was accurate and the feedback provided to the student was constructive and identified opportunities for improvement. The document also includes an assignment brief for Dewmi Sandunika Heenatigala for the same unit, which involves designing a database system for a transport company and producing documentation.

Uploaded by

dewmi sandunika
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 66

Higher Nationals

Internal verification of assessment decisions – BTEC (RQF)


INTERNAL VERIFICATION – ASSESSMENT DECISIONS
Programme title High national diploma in computing

Miss Yamuna
Assessor Internal Verifier
Unit 04: Database Design & Development
Unit(s)
Data base system for the SmartMovers Transport Company
Assignment title
Dewmi Sandunika Heenatigala
Student’s name
List which assessment criteria Pass Merit Distinction
the Assessor has awarded.

INTERNAL VERIFIER CHECKLIST

Do the assessment criteria awarded match


those shown in the assignment brief? Y/N
Is the Pass/Merit/Distinction grade awarded
justified by the assessor’s comments on the Y/N
student work?

Has the work been assessed


accurately? Y/N

Is the feedback to the student:


Give details:
• Constructive?
Y/N
• Linked to relevant assessment criteria?
Y/N
• Identifying opportunities for Y/N
improved performance?
• Agreeing actions?
Y/N
Does the assessment decision need
amending? Y/N

Assessor signature Date

Internal Verifier signature Date


Programme Leader signature (if required)
Date
Confirm action completed
Remedial action taken
Give details:

Assessor signature Date

1
Dewmi Sandunika Heenatigala Unit 4
Internal Verifier
signature Date
Programme Leader
signature (if required) Date

2
Dewmi Sandunika Heenatigala Unit 4
Higher Nationals - Summative Assignment Feedback Form
Student Name/ID
Unit 04: Database Design & Development
Unit Title
Assignment Number 1 Assessor
Date Received
Submission Date 1st submission
Date Received 2nd
Re-submission Date submission

Assessor Feedback:
LO1 Use an appropriate design tool to design a relational database system for a substantial problem
Pass, Merit & Distinction P1 M1 D1
Descripts

LO2 Develop a fully functional relational database system, based on an existing system design
Pass, Merit & Distinction P2 M2 M3 D2
Descripts

LO3 Test the system against user and system requirements.


Pass, Merit & Distinction P3 M4 D3
Descripts

LO4 Produce technical and user documentation.


Pass, Merit & Distinction P4 P5 M5 D4
Descripts

Grade: Assessor Signature: Date:


Resubmission Feedback:

Grade: Assessor Signature: Date:


Internal Verifier’s Comments:

Signature & Date:

* Please note that grade decisions are provisional. They are only confirmed once internal and external moderation has taken place and
grades decisions have been agreed at the assessment board.

3
Dewmi Sandunika Heenatigala Unit 4
Pearson Higher Nationals in
Computing
Unit 04: Database Design & Development
Assignment 01

4
Dewmi Sandunika Heenatigala Unit 4
General Guidelines

1. A cover page or title page should be attached to your assignment. Use page 1 of this
assignment brief as your cover page and make sure all details are accurately filled.
2. The entire assignment brief should be attached as the first section of your assignment.
3. The assignment should be prepared using a word processing software.
4. The assignment should be printed single sided in an A4 sized paper.
5. Allow 1” margin on top, bottom and right sides of the paper and 1.25” on the left side (for
binding).

Word Processing Rules

1. The font size should be 12 point, and should be in the style of Time New Roman.
2. Set line spacing to 1.5. Justify all paragraphs.
3. Ensure that all headings are consistent in terms of size and font style.
4. Use footer function on the word processor to insert your name, unit, assignment no, and
page number on each page. This is useful if individual sheets get detached from the
submission.
5. Use the spell check and grammar check function of the word processing application to
review the use of language on your assignment.

5
Dewmi Sandunika Heenatigala Unit 4
Important Points:

1. Carefully check carefully the hand in date and the instructions given with the assignment.
Late submissions will not be accepted.
2. Ensure that sufficient time is spent to complete the assignment by the due date.
3. Do not wait till the last minute to print or bind the assignment. Such excuses will not be
accepted for late submissions.
4. You must be responsible for efficient management of your time.
5. If you are unable to hand in your assignment on time and have valid reasons such as illness,
you may apply (in writing) for an extension.
6. Failure to achieve at least a PASS grade will result in a REFERRAL grade.
7. Non-submission of work without valid reasons will lead to an automatic REFERRAL. You will
then be asked to complete an alternative assignment.
8. If you use other people’s work or ideas in your assignment, it must be properly referenced,
using the HARVARD referencing system, in your text or any bibliography. Otherwise, you’ll
be found guilty of committing plagiarism.
9. If you are caught plagiarising, your grade will be reduced to a REFERRAL or at worst, you
could be excluded from the course.

6
Dewmi Sandunika Heenatigala Unit 4
Student Declaration

I hereby, declare that I know what plagiarism entails, namely to use another’s work and to present
it as my own without attributing the sources in the correct form. I further understand what it
means to copy another’s work.

1. I know that plagiarism is a punishable offence because it constitutes theft.


2. I understand the plagiarism and copying policy of Edexcel UK.
3. I know what the consequences will be if I plagiarise or copy another’s work in any of the
assignments for this program.
4. I declare therefore that all work presented by me for every aspect of my program, will be my
own, and where I have made use of another’s work, I will attribute the source in the correct
way.
5. I acknowledge that the attachment of this document signed or not, constitutes a binding
agreement between myself and Edexcel UK.
6. I understand that my assignment will not be considered as submitted if this document is not
attached to the assignment.

[email protected]
Student’s Signature: Date:27.03.2020
(Provide E-mail ID) (Provide Submission Date)

7
Dewmi Sandunika Heenatigala Unit 4
Higher National Diploma in Computing
Assignment Brief
Student Name /ID Number Dewmi Sandunika Heenatigala/LE05456

Unit Number and Title Unit 4: Database Design & Development

Academic Year 2017/18


Unit Tutor

Assignment Title Data base system for the SmartMovers Transport


Company

Issue Date

Submission Date

IV Name & Date

Submission format

Part 1: The submission is in the form of an individual written report. This should be written
in a concise, formal business style using single spacing and font size 12. You are required
to make use of headings, paragraphs and subsections as appropriate, and all work must be
supported with research and referenced using the Harvard referencing system. Please also
provide a bibliography using the Harvard referencing system. The recommended word
limit is 2,000–2,500 words, although you will not be penalised for exceeding the total word
limit.
Part 2: The submission is in the form of a fully functional relational database system
demonstrated to the Tutor; and an individual written report (please see details in Part 1
above).
Part 3: The submission is in the form of a witness statement of the testing completed by
the Tutor; technical documentation; and a written report (please see details in Part 1
above).
Unit Learning Outcomes:

LO1 Use an appropriate design tool to design a relational database system for a
substantial problem.
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.
Assignment Brief and Guidance:

8
Dewmi Sandunika Heenatigala Unit 4
*Please note that assignment guidance is for reference
only and should be more specific in detail to meet customized needs.
Assignment brief
Case study
You are employed as a Database Developer for a large IT development
company. The company has been approached by a transport company
called SmartMovers which has grown to a level where need to have an
automated system to handle day today operational activities to meet
customer demands. You are given the job to design and develop a database
solution for SmartMovers to meet their business requirements.
The company transports chemical products from one location to another on
behalf of registered customers. Customers are of three types namely
Catogory1, 2 and 3. Each customer is given a unique customer number and
his or her details have to be recorded in the system.
Each transport operation is called a job, which involves picking up one or
more loads of the products from a customer requested start location and
delivers it to a customer requested destination. A unique number is given
for each job and for each load when they are created.
A Load is transported using a particular transport unit, which consists of a
lorry, a driver, assistant, and a container (for carrying the product) A
container is fixed to a trailer so it needs to be coupled to a lorry at the start
of a Job. (Single container can transport only one chemical product due to
safety requirements)
Payments for a job depends on customer type, product type (No Risk, High
risk) and the load type (small, medium and large). Transport operations are
run from 9 regional depots. Jobs are allocated to individual depots to
service. Depots hold, manage and maintain their own transport units
which are permanently allocated to them to service Jobs. Normally
transport units are held at the base Depot they belong.
The final system should be able to provide the required information for

9
Dewmi Sandunika Heenatigala Unit 4
management decision making and to handle daily
operations efficiently and effectively.
Activity 01
Activity 1.1
a. Identify the user and system requirements to design a database for
the above scenario.
b. Identify entities and attributes of the given scenario and design a
relational database system using conceptual design (ER Model) by
including identifiers (primary Key) of entities and cardinalities,
participations of relationships.
c. Convert the ER Model into logical database design using relational
database model including primary keys foreign keys and referential
Integrities. It should contain at least five interrelated tables.
Note:-It is allowed to have your own assumptions and related attributes
within the scope of the case study given.
Activity 1.2
a. Explain data normalization with examples. Check whether the
provided logical design in task 1.1 is normalised. If not, normalize
the database by removing the anomalies.
b. Design set of simple interfaces to input and output for the above
scenario using Wireframe or any interface-designing tool.
c. Explain the validation mechanisms to validate data in the tables with
examples.

Activity 1.3
a. Check whether the given design (ERD and Logical design) is
representing the identified user and system requirements to access
the effectiveness of the design.

10
Dewmi Sandunika Heenatigala Unit 4
Activity 2
Activity 2.1
Develop the database system with evidence of user interface, output and
data validations, and querying across multiple tables.
a. Develop a relational database system according to the ER diagram
you have created (Use SQL DDL statements).
b. Provide evidence of the use of a suitable IDE to create a simple
interface to insert, update and delete data in the database
c. Implement the validation methods explained in task 1.2-part c.
d. Display the details payment with the job details and the customer
details using Join queries

Activity 2.2
a. Explain the usage of DML with below mentioned queries by giving at
least one single example per each case from the developed
database.
Select
Update
Delete
Note: - The queries you have selected should be meaningful and relevant
to the given scenario.

Activity 2.3
a. Explain how security mechanisms have been used and the
importance of these mechanisms for the security of the database.
Implement proper security mechanisms (EX: -User groups, access
permissions) in the developed database.

11
Dewmi Sandunika Heenatigala Unit 4
Activity 2.4
a. Explain the usage of the below SQL statements with the examples
from the developed database
Group by
Order by
Having
Between
Where

Activity 3
Activity 3.1
a. Provide a suitable test plan to test the system against user and
system requirements
b. Provide relevant test cases for the database you have implemented
Note:- Learner needs to give expected results in a tabular format and
screenshots of the actual results with the conclusion

Activity 3.2
a. Explain how the selected test data in task 3.1 b) can be used
improve the effectiveness of testing.

Activity 3.3
a. Get independent feedback on your database solution from the non-
technical users and some developers (use surveys, questioners,
interviews or any other feedback collecting method) and make
recommendations and suggestions for improvements in a separate
conclusion/recommendations section.

12
Dewmi Sandunika Heenatigala Unit 4
Activity 4
Activity 4.1
a. Prepare a simple users’ guide and a technical documentation for the
support and maintenance of the software.
Activity 4.2
a. Your technical documentation should include some of the UML
diagrams (Use case diagram Class diagram, etc.), flow charts for the
important functionalities, context level DFD and the Level 1 DFD
Activity 4.3
a. Suggest the future improvements that may be required to ensure
the continued effectiveness of the database system.

13
Dewmi Sandunika Heenatigala Unit 4
Contents
Activity1.1....................................................................................................................................................15
Activity1.1.a.............................................................................................................................................15
Activity1.1.b.............................................................................................................................................17
Activity1.1.c.............................................................................................................................................18
Activity1.2....................................................................................................................................................19
Activity1.2.a,c...........................................................................................................................................19
Activity1.2.b.............................................................................................................................................23
Activity2.1....................................................................................................................................................27
Activity2.1.a.............................................................................................................................................27
Activity2.1.b.............................................................................................................................................31
Activity2.1.d.............................................................................................................................................37
Activity2.2....................................................................................................................................................38
Activity2.2.a.............................................................................................................................................38
Activity2.3....................................................................................................................................................41
Activity2.3.a.............................................................................................................................................41
Activity2.4....................................................................................................................................................42
Activity2.4.a.............................................................................................................................................42
Activity3.1....................................................................................................................................................44
Activity3.1.a, b.........................................................................................................................................44
Activity3.3....................................................................................................................................................47
Activity4.1....................................................................................................................................................48
Activity4.2....................................................................................................................................................52
Activity4.3....................................................................................................................................................54
Conclusion........................................................................................................................................................55
Reference..........................................................................................................................................................55

14
Dewmi Sandunika Heenatigala Unit 4
ACKNOWLEDGEMENT
I would like to express my special thanks to my module lecturer for his guidance, constant supervision as
well as for providing me the excellent opportunity to do this assignment. Also for providing necessary
information regarding the assignment and for his support in completing the assignment.

15
Dewmi Sandunika Heenatigala Unit 4
Activity1.1

Activity1.1.a
Requirement
The requirement for a system are the descriptions of what the system should do this requirement reflect the
need of customer for a system.

User requirements

The User Requirements are statement in a natural language of what services the user the system expected to
provide to system user. User Requirements Specifications written early in the process, before the system
created. The system owner and end-users write them. We can get user requirements list by interviewing
customer and employees (OfniSystem, 2019)

User requirements of smart movers company


 Store and manage customer details
 Store and manage product details
 Store and manage job details
 Store and manage load detail
 Store and manage deport details
 Enter and manage payments
 Input orders
 Record and manage employee details
 Record and manage transport detail

16
Dewmi Sandunika Heenatigala Unit 4
System requirement
System requirements are more detail description of the software system function, servicers and operational
constrains. All this requirements recorded in a document called system requirement specialization,

System requirements of smart movers company


 Give specific customer ID with different number of characters to identify categories
 Each product must have unique number as product ID
 Categorize product type as No risk and High risk
 Categorize load type as small, medium, Large
 Create inter relationships between each entity

Functional requirement
Functional requirements explain what has to done by identifying the necessary task, action or activity that
must accomplished. Functional requirements analysis will used as the top-level functions for functional
analysis
 Managing details of each and every entity

Non-functional requirement
Non-functional requirements are requirements that specify criteria that can used to judge the operation of a
system, rather than specific behaviours.
 Speed of the system
 Quality of the system
 Database capacity
 User friendliness
 Security of the database and the system

17
Dewmi Sandunika Heenatigala Unit 4
Activity1.1.b
Conceptual Model
In this conceptual model we define the data entities and the relationship that exist between them and
limitation that apply (Creating the entity relationship diagram)

Conceptual model of Smart mover


Product (ProductID, ProductName, ProductType, Quantity)

Customer (CustomerID, FirstName, LastName, CustomerCatogery, AddressNo, AddressStreet,


AddressCity ,ContactNo)

Job (JobID, StartLocation, EndLocation, JobValue)

Load (LoadID, LoadType, ContainerNo, LorryNo)

Transport unit (UnitNo,UnitName, DriverID, DriverName, AssistantID, AssistantName)

Payment (PaymentID,PaymentDate)

Deport (DeportNo, DeportName)

18
Dewmi Sandunika Heenatigala Unit 4
Activity1.1.c

Logical Database Design


Step1: Problem Definition
Step2: Requirement Collection and Analysis
Step3: Conceptual design
Step4: Logical Design/ Data model mapping
Step5: Physical Design

In the stage of Logical Database Design, the relational schema created according to the ERD and it’s
converted in to tables. (Mapping)

Relational Schema
Customer (CustomerID, FirstName, LastName, CustomerCatogery, AddressNo, AddressStreet,
AddressCity ,ContactNo)

Job (JobID, StartLocation, EndLocation, JobValue,CustomerID*, LoadID*,DeportID*)

Product (ProductID, ProductName, ProductType, Quantity)

Load (LoadID, LoadType, ContainerNo, LorryNo)

TransportUnit (TUnitNo, TUnitName, DriverID, DriverName, AssistantID, AssistantName,


LoadID*,DeportID*)

Payment (PaymentID,PaymentDate, JobID*)

Deport (DeportNo, DeportName )

19
Dewmi Sandunika Heenatigala Unit 4
ERD of Smart movers

Figure 1 ERD
Source (Author Developed)

Activity1.2

Activity1.2.a, c

Data normalization
Data normalization is a method or technique of organizing the data in database.it is a systematic approach of
decomposing tables to eliminate data repetition and undesirable characteristics like insertion, Update and
deletion Anomalies. The process of normalization is putting data in to a tabular form. Removing duplicated
data from the relation tables (Abishek Ahlawath, 2019).

20
Dewmi Sandunika Heenatigala Unit 4
Steps in Normalization

Figure 2 Normalization
Source (Author Developed)

First normal form


Rules
1) Each column should contain atomic value

Entity Attribute Attribute value Attribute value atomic or


not
Customer CustomerName Janaka, Kumara Not atomic
Customer FirstName Kamal Atamic
Table 1

21
Dewmi Sandunika Heenatigala Unit 4
2) Column should contain same value type
Entity Attribute Attribute value Attribute value same
value type or not
Payment PaymentDate 20.05.2019 Same value type
Payment PaymentDate 20March2019 Not same value type

3) Each column should have a unique name

Table 2
Entity Column1 Column2 Column3 Column name
unique or not
Load LoadID LoadName LoadID Not unique
Job JobID StartLocation EndLocation Unique
Table 3

4) Order is which data is saved doesn’t matter


ProductID ProductType
001 HighRisk
005 LowRisk
002 LowRisk
Table 4

Second normal form


Rules
1) Should be in first normal form
2) Should not have partial dependence

22
Dewmi Sandunika Heenatigala Unit 4
Lets take an example of a Customer table with
columns CustomerID, CustomerCategory,
FirstName, SecondName and ContactNo
Customer table
CustomerID CustomerCategory FirstName SecondName ContactNo

Table 5

In this table, CustomerID is the primary key and will be unique for every row, hence we can use
CustomerID to fetch any row of data from this table.

Third normal form


Rules
1) Should be in second normal form
2) Should not have transitive dependency.

Take out the columns ProductName and ProductType from load table and put them in a
ProductTable and use the ProductID wherever required.
Load table
LoadID LoadType ContainerNo LorryNo ProductID

Table 6
The new Product table
ProductID ProductName ProductType Quantity

Table 7
According to the above normalization, process I recommended my Database is already normalized and
there’s no any data redundancy and tables created according to normalization rules. There for no need of
data normalization again.

23
Dewmi Sandunika Heenatigala Unit 4
Activity1.2.b

Interface Design for input and output data

Menu Form

Figure 3 Menu form


Source (Author Developed)

24
Dewmi Sandunika Heenatigala Unit 4
Customer form

Figure 4 Customer form


Source (Author Developed)

Job form

Figure 5 Job form


Source (Author Developed)

25
Dewmi Sandunika Heenatigala Unit 4
Product form

Figure 6 Product form


Source (Author Developed)

26
Dewmi Sandunika Heenatigala Unit 4
Load For

Figure 7 Load form


Source (Author Developed)

Payment Form

Figure 8 Payment form


Source (Author Developed)

27
Dewmi Sandunika Heenatigala Unit 4
Deport Form

Figure 9 Deport form


Source (Author Developed)

TransportUnit form

Figure 10 TransportUnit form


Source (Author Developed)

28
Dewmi Sandunika Heenatigala Unit 4
Activity2.1

Activity2.1.a

Relational Database system for smart movers


Table Name –Customer

Figure 11 Customer
Source (Author Developed)

Table Name –Customer

Figure 12 Load
Source (Author Developed)

29
Dewmi Sandunika Heenatigala Unit 4
Table Name – Product

Figure 13 Product
Source (Author Developed)

Table Name – Deport

Figure 14 Deport
Source (Author Developed)

30
Dewmi Sandunika Heenatigala Unit 4
Table Name – Job

Figure 15 Job
Source (Author Developed)

Table Name – Payment

Figure 16 Payment
Source (Author Developed)

31
Dewmi Sandunika Heenatigala Unit 4
Table Name – TransportUnit

Figure 17 Transport
Source (Author Developed)

32
Dewmi Sandunika Heenatigala Unit 4
Activity2.1.b

Evidence on the use of a suitable IDE


Visual studio (C#) used to create the user interface to insert, update and delete records from the database of
the Smart Movers system
Menu - Menu form consist seven entities as buttons and one exit button. When we click on each button, it
will open another new form to insert, update, save and delete data.

Figure 18 Menu
Source (Author Developed)

There are seven different form to insert, update, save and delete data as follow

1 . Customer

Figure 19 Customer
Source (Author Developed) 33
Dewmi Sandunika Heenatigala Unit 4
2. Deport

Figure 20 Deport
Source (Author Developed)

3. Job

Figure 21 Job
Source (Author Developed)
34
Dewmi Sandunika Heenatigala Unit 4
4. Products

Figure 22 Products
Source (Author Developed)

5.Load

Figure 23 Load 35
Dewmi Sandunika Heenatigala Source
Unit 4 (Author Developed)
6.Transport Unit

Figure 24 transport
Source (Author Developed)

7.payment

Figure 25 Payment
Source (Author Developed)

36
Dewmi Sandunika Heenatigala Unit 4
Connect IDE and Database
 Connection strings used to connect database and IDE together. To insert, update and delete data
Using IDE is the best easy method used by user. Anyone can easily learn the system and do process.
SqlConnection con = new SqlConnection("Data Source=DESKTOP-R6KN29L\\SQLEXPRESS;Initial
Catalog=SmartMovers;Integrated Security=True;Connect Timeout=30;");

Insert Data to Database using IDE


1.We have to fill each text box.

Figure 26 Customer
Source (Author Developed)

2. Click on button “Insert”

37
Dewmi Sandunika Heenatigala Unit 4
After clicking on it, it shows a message on message box “’Records Saved”

Figure 27 Customer
Source (Author Developed)

3.If we entered a Customer ID that already exist Massage shows “Customer ID already exist”

Figure 28 Customer
Source (Author Developed)

38
Dewmi Sandunika Heenatigala Unit 4
Check whether record added to table

Figure 29 details
Source (Author Developed)

 We can insert data to every seven table as the above method. Every table inserting process is same.
 Using an IDE interface, we can select, insert, delete and update date off data as table.

39
Dewmi Sandunika Heenatigala Unit 4
Activity2.1.d
Display Join queries

Join queries means a SQL operation to connection between two or more database tables base on matching
columns, and they automatically crating a relationship between the tables. Most complex queries in a SQL
database connection use this Join commands (Queries).
And above example is used Smart Movers company based on the case study. In here mainly use join
queries for (Payment, Job, and Customer) tables.

Figure 30 Select
Source (Author Developed)

40
Dewmi Sandunika Heenatigala Unit 4
Activity2.2

Activity2.2.a
Data Manipulation Language
Data manipulation language is organized in manipulation commands like,
1. Retrieval (Select) of data contained in the database.
2. Insertion of new data into the database.
3. Update data stored in the database.
4. Delete data from the database.

Retrieval (Select)
This command is used to retrieve data from a row in a table. In below query from the database
management system the first line of code is used to select the column and the second line is used to select
the table that the data is stored.

Figure 31Details
Source (Author Developed)

41
Dewmi Sandunika Heenatigala Unit 4
Insert
This command is used to insert data in to an existing table on a database. In below query from the database
management system the first line of code is used to insert the data into the table and the second column is
used to enter the value to the table.

Figure 32 Load
Source (Author Developed)

Figure 33 Details
Source (Author Developed)

Update
This command used to update data in existing column of a table in the database. In below query from the
database management system the first line of code used to select the table name to and second line to
define a condition, which values to update.

42
Dewmi Sandunika Heenatigala Unit 4
Figure 34 Load
Source (Author Developed)
Delete
This command is used to
delete data in an existing
table in the database. In below query from the database management system the first line of code is used to
select the table and the second line is used define a condition what should be deleted.

Figure 35 Delete
Source (Author Developed)

43
Dewmi Sandunika Heenatigala Unit 4
Activity2.3

Activity2.3.a
Definition of Security Mechanisms
A database must be protecting for two treats,
1. Internal treats
2. External treats

The internal treats mean, a treats organizing inside of the company, government, agency and employees,
accident losses etc. The internal treats cannot identify quickly because they happen within the organization.
In addition, external treats include the criminal syndicates, hackers.
And also databases must be protected from natural disasters such as a flood and faire following security
maintains are should be implemented.

Why should be Security Mechanism are important

Database security requirement is must still now, because of the potential security threats posed by database
and computers networks is significant and ever increasing. For a database are usually create/ designed to be
used by many users, then every time database can be run to risk.
 It’s designed to detect prevent or recovery from a security attacks.
 It’s secured data processing and information transfer methods.
 And use separate data servers the if the main server data even if is destroyed, the data in
safe in separate server.
The main Security mechanisms
There are many kind of security mechanism available, and some above some of the area
(mechanisms) cover this part.
 User Login

44
Dewmi Sandunika Heenatigala Unit 4
Figure 36 Login
Source (Author Developed)

When use to give a login account with user name and password for each user.

 Access privileges
Each user given a set of access privileges to control the actions of the user there give
with the SQL grant statements.

 Firewall
These mechanisms are very impotent one; because of the reasons when we transfer
information to the network first implement a firewall security in middle of the network.
Therefore, that can protect or prevent our data’s from hikers and malware.

45
Dewmi Sandunika Heenatigala Unit 4
 Backup and Recovery
Backup copies of the database daily, weekly or monthly and recovery the database
servers.

Activity2.4

Activity2.4.a

Using sql server

Group by
Group by clause used to group the results of a select query based on one or more columns. In other word
group by operator, logically rearrange the relation into groups or partition.

46
Dewmi Sandunika Heenatigala Unit 4 Figure 37 Group by
Source (Author Developed)
Oder by
Order by is ordering of resulting values either in ascending or descending order.

Figure 38 Orderby
Source (Author Developed)

Having
Having clause used to select or reject tuples that it meets specific condition. It is similar to WHERE clause
and places the condition on the group by clause.

47
Dewmi Sandunika Heenatigala Unit 4
Between
Between is use in a SQL server got the value within a
range in Select, Insert, Update and Delete data statements.

Where
There where clause is mainly use to filter records. The WHER clause used to extract only those records
that fulfil a specified condition.

Activity3.1

Activity3.1.a, b

Test plan for smart movers

Featured to be test

1. Customer table

Add customer – In here mainly done by add some data from customer tables.

Figure 39 48
Dewmi Sandunika Heenatigala SourceUnit 4
(Author Developed)
Update customer – update existing record

Figure 40
Source (Author Developed)

2. Product table
Add product

49
Dewmi Sandunika Heenatigala Unit 4
6. Deport table
Add deport

Figure 42
Source (Author Developed)
Table 8

Software and hardware requirements


The company of transfer the chemical products and this system is a web base system because of the online
orders and online payments granted for this company. So to identify the software and hardware
components of this system.

50
Dewmi Sandunika Heenatigala Unit 4
Software Requirements
 DBMS (SQL Server, My SQL)
 Visual Studio

Hardware Requirements
 Data Server
 Firewall
 Router

Test summery

Components Feature Sample Data Results

 Customer Table Add new customer Add customer ‘Dewmi’ Successful

Update existing customer Update customer city Successful


‘Kandy’
Delete existing customer Delete customer CustomerIDSuccessful
= ‘001’
 Deport Add new deport Add deport ‘kandy’ Successful

Update the deport name Update name ‘Kandy’ Successful

Delete the the existing Delete closed deport Successful


data’s ‘Anuradapura’
 Product Table Add new product Add product ‘H2ONa’ Successful

Update the product type Update product type ‘No Successful


risk’
Delete product Delete product H2OSe Successful

Table 9 test

51
Dewmi Sandunika Heenatigala Unit 4
Activity3.3

After develop this system the company want to must be check the reticular system developers and
Customer has a feedback, suggestion about the particular system.
Developer Explanation.
The system includes every function and the case study requirements.easily manage every department
easily, calculate every requirement. Here is a customer cannot accuse the system it is the disadvantage of
this system. Here security is less.

Customer Suggestion.
This system very helps to update everything and mange individually the uses this system but their no form
to use to customers

Activity4.1

User guide for the “Smart movers” system

Logging form
In here is provide a User name and password for every user it also a security requirement for this chemical
company.

Figure 43
Source (Author Developed) 52
Dewmi Sandunika Heenatigala Unit 4
Main menu Form

Every forms are connecting to this menu form and other every main forms based on menu by clicking each
buttons we can go to each different relevant forms.

Figure 44
Source (Author Developed)

53
Dewmi Sandunika Heenatigala Unit 4
Customer form
This form is mainly doing a show a customer detail gets it in a SmartMovers database. And we can insert,
edit , update and delete customer details easily by using this form

Figure 45
Source (Author Developed)

Products form
Here also have a data grid viewer to read a product details and show them that data in correct text boxes.
This interface has to insert, update and delete data. We can select product type easily.

54
Dewmi Sandunika Heenatigala Unit 4
Figure 46
Source (Author Developed)

Job form
This interface is show every Job details in the databases. Here can add new jobs, update existing job
details, and delete job details.

Figure 47
Source (Author Developed)

55
Dewmi Sandunika Heenatigala Unit 4
Load form
Here show the load details form the particular database and insert, update and delete the data’s.

Figure 48
Source (Author Developed)

Transport Unit

56
Dewmi Sandunika Heenatigala Unit 4
This is mainly impotent of this system because of high
riskily transport a chemical product, and they want a

Figure 49
Source (Author Developed)

separate security requirements and here also update a transport unit details, driver’s details etc.

Payments details
When a customer pays the particular job here that store all data and Insert, update and delete existing data

Figure 50
Source (Author Developed)
57
Dewmi Sandunika Heenatigala Unit 4
Activity4.2

Technical Document

Functional Requirements.

The operational requirements are mainly address in the way that a system reacted at a particular time and
how to deal with it. In other way is a declaration of the intended function of a system its components. This
means that there is a function is the system.

Non-functional Requirements.

Non-functional requirements heights how the system should provide the service accordingly. These are
constraints on the services or functions offered by the system. Also known as system qualities, non-
functional requirements are just as critical as functional Epics, Capabilities, Features and Stories.

These are some of the key issues.


 Security
 Reliability
 Performance
 Maintainability

Hardware and Software Requirements


This topic discusses which kind of software and hardware use for this system. Describe this part clearly.
 Software
 SQL, Visual studio

User case diagram of smart movers system

58
Dewmi Sandunika Heenatigala Unit 4
Figure 51
Source (Author Developed)

Activity4.3

Future improvements

 Build a strong web base application to improve for the online orders, and online
payment.
 Add a GPS for Transport Unit can identifying the particular company and customers
when the vehicles move.
 Gave a particular User ID and password to every customer to do own work
individually.
 High security that network system (Depots to depots)
 Use a high security file servers and use a separate data server for pre-preparedness.

59
Dewmi Sandunika Heenatigala Unit 4
Conclusion

This assignment mainly explains the basics of the Database operation and SQL servers. It has included a
several types of topics in a different concept. This subject gave big opportunity to understand the
Specification, Implementation, and Assessment of Data Structures for a sample scenario.

References
Abishek Ahlawath, 2019. DMBD&SQL. [Online]
Available at: https://www.studytonight.com/dmbs/database-normalization.php
[Accessed 12 03 2019].
Anon., n.d. Dictionary. [Online]
Available at: https://www.dictionary.com/browse/requirements
Anon., n.d. system requirments. [Online]
Available at: https://www.techopedia.com/definition/4371/system-requirements

60
Dewmi Sandunika Heenatigala Unit 4
developed, A., 2020. [Art].
OfniSystem, 2019. Ofni system. [Online]
Available at: http://www.ofnisystems.com/services/validation/user-requirement-specifications
[Accessed 24 02 2019].

Gant Chart
LO November December January February March

LO1

LO2

LO3

LO4

61
Dewmi Sandunika Heenatigala Unit 4
Finalizing

62
Dewmi Sandunika Heenatigala Unit 4
63
Dewmi Sandunika Heenatigala Unit 4
Grading Criteria Achieved Feedback

LO1 Use an appropriate design tool to design a relational


database system for a substantial problem

P1 Design a relational database system using appropriate


design tools and techniques, containing at least four
interrelated tables, with clear statements of user and system
requirements.
M1 Produce a comprehensive design for a fully functional
system that includes interface and output designs, data
validations and data normalization.

D1 Assess the effectiveness of the design in relation to user


and system requirements.

LO2 Develop a fully functional relational database system,


based on an existing system design

64
Dewmi Sandunika Heenatigala Unit 4
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 that


includes system security and database maintenance.

M3 Assess whether meaningful data has been extracted using


query tools to produce appropriate management information.

LO3 Test the systems against user and system requirements

65
Dewmi Sandunika Heenatigala Unit 4
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.
LO2 & LO3
D2 Evaluate the effectiveness of the database solution in
relation to user and system requirements, and suggest
improvements.
LO4 Produce technical and user documentation

P5 Produce technical and user documentation.

M5 Produce 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.

D3 Assess any future improvements that may be required to


ensure the continued effectiveness of the database system.

66
Dewmi Sandunika Heenatigala Unit 4

You might also like