Professional Documents
Culture Documents
Ruzan DDD Final Assignment - 082903
Ruzan DDD Final Assignment - 082903
Internal Verifier
Date
signature
Programme Leader
Date
signature (if required)
LO2 Develop a fully functional relational database system, based on an existing system design
Pass, Merit & Distinction P2 P3 M2 M3 D2
Descripts
Resubmission Feedback:
* 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.
Action Plan
I have included the diagram that was missed.
Summative feedback
ishani@esoft.lk 15.10.1022
Assessor Date
signature
E161001@esoft.academy 15.10.2022
Student Date
signature
1. A Cover page or title page – You should always attach a title page to your assignment.
Use previous page as your cover sheet and make sure all the details are accurately
filled.
2. Attach this brief as the first section of your assignment.
3. All the assignments should be prepared using a word processing software.
4. All the assignments should be printed on A4 sized papers. Use single side printing.
5. Allow 1” for top, bottom , right margins and 1.25” for the left margin of each page.
1. The font size should be 12 point, and should be in the style of Time New Roman.
2. Use 1.5 line spacing. Left justify all paragraphs.
3. Ensure that all the headings are consistent in terms of the font size and font style.
4. Use footer function in the word processor to insert Your Name, Subject, Assignment
No, and Page Number on each page. This is useful if individual sheets become
detached for any reason.
5. Use word processing application spell check and grammar check function to help
editing your assignment.
Important Points:
1. It is strictly prohibited to use textboxes to add texts in the assignments, except for the
compulsory information. eg: Figures, tables of comparison etc. Adding text boxes in
the body except for the before mentioned compulsory information will result in
rejection of your work.
2. Carefully check the hand in date and the instructions given in the assignment. Late
submissions will not be accepted.
3. Ensure that you give yourself enough time to complete the assignment by the due
date.
4. Excuses of any nature will not be accepted for failure to hand in the work on time.
5. You must take responsibility for managing your own time effectively.
6. 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.
7. Failure to achieve at least PASS criteria will result in a REFERRAL grade .
8. Non-submission of work without valid reasons will lead to an automatic RE FERRAL.
You will then be asked to complete an alternative assignment.
9. If you use other people’s work or ideas in your assignment, reference them properly
using HARVARD referencing system to avoid plagiarism. You have to provide both in-
text citation and a reference list.
10. If you are proven to be guilty of plagiarism or any academic misconduct, your grade
could be reduced to A REFERRAL or at worst you could be expelled from the course
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.
E161001@esoft.academy 15.10.2022
Student’s Signature: Date:
(Provide E-mail ID) (Provide Submission Date)
Submission format
Part 1: The submission should be in the form of an individual written report 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 Harvard referencing system. Please also provide in-text citation
and bibliography using Harvard referencing system. The recommended word limit is 3,000–
3,500 words, although you will not be penalised for exceeding the total word limit.
Part 2: The submission should be 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 should be 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:
Polly Pipe is a water sports provider and installer based in Braintree, England. They need you
to design and implement a database that meets the data requirements. These necessities are
defined in this scenario and below are samples of the paper records that the Polly Pipe
preserves.
Polly Pipe is focused in placing aquariums at business customers. Customers can request
several installations, but each installation is tailor-made for a specific customer. Facilities are
classified by type. One or more employees are assigned to each facility. Because these
facilities are often very large, they can include carpenters and masons as well as water
installers. The facilities use equipment such as aquariums, air pumps and thermostats. There
can be multiple computers in a facility.
Below are examples of paper records that Polly Pipe currently maintains.
(Note:-It is allowed to have your own assumptions and related attributes within the scope of the case study
given)
1.2. Design set of simple interfaces to input and output for the above scenario using
Wireframe or any interface-designing tool. Evaluate the effectiveness of the given design
(ERD and Logical design) in terms of the identified user and system requirements .
Activity 2
Activity 2.1
a. Develop a relational database system according to the ER diagram you have created
(Use SQL DDL statements). Provide evidence of the use of a suitable IDE to create a
simple interface to insert, update and delete data in the database. Implement proper
security mechanisms in the developed database.
Evaluate the database solution developed and its effectiveness with relevant to the
user and system requirements identified, system security mechanisms (EX: -User
groups, access permissions) and the maintenance of the database.
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. Assess the usage of the below
SQL statements with the examples from the developed database to prove that the
data extracted through them are meaningful and relevant to the given scenario.
Select/ Where / Update / Between / In / Group by / Order by / Having
Activity 3.2
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.
Activity 4
Produce a technical documentation and a user guide for the developed database system.
Suitable diagrams diagrams (Use case diagram, class diagram, flow charts, DFD level 0 and
1) should be included in the technical documentation to show data movement in the system.
Assess the developed database by suggesting future enhancements to ensure the
effectiveness of the system.
Thank You!!!
User requirements
User requirements, or user needs, are description of what a user must do with the
system, such as what activities a user must be able to perform. Narrative text is usually used
to document user requirements in a user requirements document (URD).
• In customer table, the user can accept orders and enter like Customer name and
installation ID.
• In the employee table, the user can access information on the staffs working, staffs on
leave using records staff_id and staff name in the relation
• In the equipment table, the user updates the equipment used by employees in that
way, if any shortage, or loss in equipment, the record can be recalled.
System requirements
system requirements are the configuration that a system must have in order for a
hardware or software application to run smoothly and efficiently. System requirements are
classified as:
according to the system we are implementing, these meet the system requirement as:
1. Software requirements
Software requirement is a functional or non-functional need to be
implemented in the system.
Followings are the Hardware & Software requirements that were used in this
assignment
ER Diagram stands for Entity relationship diagram, also known as ERD is a diagram
that displays the relationship of entity sets stored in a database. In other words, ER diagrams
help to explain the logical structure of database.
Figure 1 ER diagram
Entities Attributes
Data validation
It is an automatic computer check to ensure that the data entered is logical and
appropriate. It does check the accuracy of data.
Length check, format check, check digit, lookup table range check, presence check,
spell check
Normalization
Normalization is a database design technique that reduces data redundancy
and eliminates undesirable characteristics like insertion, update and deletion
anomalies.
Normalization of a data model consists of several steps. These steps are called
normalization rules.
Both the Installation and Customer tables are already in normalized form.
Employee
Staff_Id Staff_name Start End Facility_id
SHA2 Freddy Davies 1/9/2012 111
SHA23 Satpal Singh 1/6/2005 1/6/2011 112
Facility
Id F_Type
111 Aquatic installing
112 Plumbing
The equipment table is un normalized form. This table can be divided into 2.
Equipment
Eq_type Eq_name Quantity F_id Staff_Id
Air pumps Standard, Super 2 111 SHA2
Tanks 200 gallons fish 1 111 SHA2
tank
Thermostats Standard 1 112 SHA23
Equipment
Quantity F_Id Staff_Id Eq_type
2 111 SHA2 Air pumps
1 111 SHA2 Air pumps
1 112 SHA23 Thermostat
Figure 2
Figure 3
Figure 5
Figure 7
Figure 9
As per the request of Polly Pipe waters port provider’s data requirements, I
have designed the ER-diagram which is the structure of the database as show in
page18. I have obtained 6 entities from the scenario (Staff, Customer, Equipment,
Facility, Payment, Installation). The ER diagram that I have is fully designed in
consideration to avoid the anomalies that are major problems. I only used Microsoft
word to design the entire ER model, as word is more familiar and user friendly to use.
All the interface were design using Microsoft Visual Studio and Database in
Microsoft server management studios.
In Figure3 I designed separated slot for each field (Customer, Staff, Installation,
Equipment, Facility, Payment) I have provided the facility to the user to preview the
respective forms by clicking the right button. This categorized way makes the system
more convenient for the user to use.
The customer entity has two attributes; customer_id and Customer_name: as
shown in figure4. I have added some features such as ‘add button to insert a new
customer to the table, ‘update’ to update customer informations, ‘save’ button to save
the changes made by updating informations, ‘delete’ button to delete customer detail
from the table and ‘back’ button to return to the previous interface.
So, I have designed the interfaces and logical diagrams as minimal but to
cover the requirements of the company and we can upgrade this system from tip to toe
by combining this simple setup with other programs.
Activity 2.1
➢ Create Database
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Figure 16
Figure 17
Visual studio can also be used foe developing web sites, web applications and web
services. It uses Microsoft software development platforms such as windows APL,
windows form, Windows Store, Windows presentation foundation and Microsoft
Silverlight,
Including a code editor that support Intelligence, Visual studio is written in C++ and
C# and offers as an integrated debugger that works both as a source debugger and a
machine level debugger.
The constraints utilized to create this database are,
• Foreign key
This constraint is used in this database to define the relationship between and within
the table.
DML which deals with data manipulation and includes most common SQL statements
such SELECT, INSERT, UPDATE, DELETE, etc and it is used to store, modify,
retrieve, delete and update data in a database.
➢ CREATE Statement
Figure 18
Figure 19
➢ SELECT
Figure 20
Figure 21
Figure 22
Figure 23
➢ BETWEEN
Figure 24
Figure 26
Figure 25
Figure 27
➢ ORDER BY
Figure 28
Software Testing
We must do several sorts of software testing in order to make sure that our software
is stable and bug-free because testing is the only process that can make an
application bug-free.
1. Unit Testing
It is the initial level of testing, which is typically performed by developers. In unit
testing, a module or component is tested in isolation. Its advantage is that defects in
a module can be easily identified at an early stage, lowering the overall cost of bug-
fixing.
2. Integration Testing
It is the second level of testing, and it involves testing a group of related modules as
an integrating component. It seeks to identify interface issues between modules. This
comes in four varieties: big-bang, bottom-up, top-down and hybrid.
3. System Testing
It is the third level of testing, and it involves testing the entire integrated application
as a whole. Its goal is to determine whether the application meets its business
requirements.
Testing methods
1. Black Box Testing: only interacting with the system’s graphical user interface
allows for black box testing.
2. White Box Testing: the system’s syntax will be tested, as well as unit and
integrating testing. Knowledge of programming is required.
3. Gray Box Testing: a combination of black box and white box testing.
Test Plan
Essentially, the Polly Pipe system is a functional and implementable system. The
logistic relational model, the ER Diagram, as shown above, initially formed this.
For any personnel, the system is extremely simple and easy to understand. Polly
Pipe’s main database contains table for the entities (Customer, Payment, Installation,
facility, Equipment, staff) as well as column names for the tables.
Assumption
▪ Customer can request a specific service for multiple addresses.
▪ Users can access the system with the proper company authentication.
▪ In an installation, customer can order more than two types of staff.
▪ Customer can only place installation orders for equipment with no personnel
involve.
Objective
Testing the system with basic functionalities for analysis and evaluation.
Features to be tested
System with database connected interfaces
Login, insert, update, delete, save, add and submit
Test Cases
Actual outcome
Tester Ruzan
Post-def function We can see new customer details adding the record
Expected outcome Displays a message box after adding the new customer details to
the tables inside.
Actual outcome
Tester Ruzan
Post-def function The previously selected record will be deleted if given ‘Yes’
Expected outcome Displays a message box after delete required record from table
Actual outcome
Tester Ruzan
Post-def function The field we wanted to update with details will be changed.
Expected outcome Displays a message box after details have been updated in the
database table.
Actual outcome
Tester Ruzan
Expected outcome Displays a message box after fields have been in the database
table.
Actual outcome
Tester Ruzan
The insert command and insert button, which are typical of some of my
interface designs, are included in Test ID 102. We eventually want to add the items
to the tables inside Polly Pipe’s database whenever we want to add a new client, a
new product, or a new service that helps with that the business needs. To store the
entered data, each insert button creates new entries in the corresponding tables. You
can see the combo box field will include the data you supplied it after the message
box says “Record added”.
As mentioned in Test ID 103, the “Update” button I also a key feature in managing
records and changes across the database’s tables. This van be used to make changes
to specific fields of data or records. Some of my interfaces have an update button,
particularly those with tables that collect and store data or information. Once you’ve
entered the items to be updated in the field rows, clicking the “update” button will
The “Submit” button is described in Test ID 104. This relates to the insert as
well. However, this future differs slightly from the insert button in that hen submit is
clicked, the data in the fields is redirected to another table that temporarily stores or
shifts the submitted information, which can then be printed if necessary.
I’ve described some of the main aspects of my database that were mentioned
in the above test cases, which will aid in testing the system’s effectiveness.
Figure 29
Figure 34
Figure 35
Figure 36
Documentation
Project documentation is the process of recording the key project details and
producing the documents that are required to implement it successfully.
Users
Only the management crew of the company can login to the system and do necessary
changes, especially a user group with access permissions.
Access Requirements
Login Interface
Figure 37
1
5
2 3 4
1. Enter username
2. Enter password
Figure 38
3 5 4 2
1 3 4 2
5
6
Figure 39 1. Click Customer (Redirects to customer interface)
1 Figure 40
4 2 3
5 6 7
8
1. Enter Customer ID
3. Enter facility ID
Figure 41
1
5 2 6 4 7 3 8
9
1. Enter Staff ID
4. Enter Facility ID
6 1 7 3 8 5 4 9 2
10
1. Enter Installation ID
5. Enter Customer ID
Figure 43
6
7 1
8 2 4 9 5 3 10 11
1. Enter equipment ID
4. Enter Facility ID
5. Enter Staff ID
6. Enter Quantity
Figure 44
3
2 4 5 1 6 7
1. Enter Facility ID
Figure 45
4 1 5 8
2 3 9 6 7
1. Enter Payment ID
Figure 46
Figure 47
Figure 48
The system that I modified to meet the needs of the company is a basic
functional system that is only for use within the company’s margins. We can design
the entire system to be online and usable by customers. When it comes to customers,
they are frequently looking for the simplest way to complete tasks. So, we can have a
website designed separately by the company and configure things accordingly. We
can connect the improved Polly pipe database to the website, create and identification
and authentication mechanism and grant customers credentials access to the website
to place orders. As a results, customers can save time by not having to go to the
company’s premises to place orders, and the company will have more online
reputations to improve their profit percentages. Although the interface shown above is
clearly not user-friendly, when it comes to the interaction and implementation of a
good system, these things must be polished and made more user-friendly, which
should include a variety of features in order to provide a much more efficient and
reliable user experience.
Figure 49