0% found this document useful (0 votes)
134 views

Database2024-Not para

The document discusses an internal verification of assessment decisions for a BTEC HND in Computing student's database design and development assignment. It includes assessment criteria, an internal verifier checklist, assessor feedback and signatures from the assessor and internal verifier.

Uploaded by

Shahana Rifkhan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
134 views

Database2024-Not para

The document discusses an internal verification of assessment decisions for a BTEC HND in Computing student's database design and development assignment. It includes assessment criteria, an internal verifier checklist, assessor feedback and signatures from the assessor and internal verifier.

Uploaded by

Shahana Rifkhan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 95

lOMoARcPSD|12766103

Unit 04 - Database

HND in Computing (ESOFT Metro Campus)

Scan to open on Studocu

Studocu is not sponsored or endorsed by any college or university


Downloaded by Shahana Rifkhan ([email protected])
lOMoARcPSD|12766103

Higher Nationals
Internal verification of assessment decisions – BTEC (RQF)

INTERNAL VERIFICATION – ASSESSMENT DECISIONS


Programme title BTEC HND in Computing

Assessor Internal
Verifier
Unit 04: Database Design & Development
Unit(s)
Database Solution for Quiet Attic Films
Assignment title
Sachin Fernando
Student’s name
List which assessment Pass Merit Distinction
criteria the Assessor
has awarded.
INTERNAL VERIFIER CHECKLIST
Do the assessment criteria
awarded match those shown in the Y/N
assignment brief?
Is the Pass/Merit/Distinction grade
awarded justified by the assessor’s Y/N
comments on the student work?

Has the work been assessed


Y/N
accurately?
Is the feedback to the student:
Give details:
• Constructive? Y/N
• Linked to relevant assessment Y/N
criteria? Y/N
• Identifying opportunities for
improved performance? Y/N
• Agreeing actions?
Does the assessment decision
Y/N
need amending?
Assessor signature Dat
e

Internal Verifier signature Dat


e
Programme Leader signature (if
Dat
required)
e
1
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Confirm action completed


Remedial action
taken
Give details:
Assessor signature Dat
e
Internal
Dat
Verifier
e
signature
Programme
Dat
Leader signature
e
(if required)

2
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Higher Nationals - Summative Assignment Feedback Form

Student Name/ID Sachin Fernando - 00165577

Unit Title Unit 04: Database Design & Development

Assignment 1 Assessor
Number
Date
Submission Date
Received
1st
submission
Date Received
Re-submission
2nd submission
Date
Assessor Feedback:
LO1 Use an appropriate design tool to design a relational database system for a
substantial problem
Pass, Merit & P1 M1 D1
Distinction Descripts

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

LO3 Test the system against user and system requirements.


Pass, Merit & P4 M4 D2
Distinction Descripts

LO4 Produce technical and user documentation.


Pass, Merit & P5 M5 D3
Distinction Descripts

Grade: Assessor Signature: Date:


Resubmission Feedback:

Grade: Assessor Signature: Date:


Internal Verifier’s Comments:

Signature & Date:

3
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

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

Assignment Feedback
Formative Feedback: Assessor to Student

Action Plan

Summative feedback

4
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Feedback: Student to Assessor

Assessor Date
signature
[email protected] 30/04/2023
Student Date
signature

5
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Pearson Higher Nationals in


Computing
Unit 04: Database Design & Development
Assignment 01

6
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

General Guidelines

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.

Word Processing Rules

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.
7
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

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

8
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

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 Pearson, UK.
6. I understand that my assignment will not be considered as submitted if this
document is not attached to the assignment.

Student’s Signature: [email protected] Date: 2023/04/30


(Provide E-mail ID) (Provide Submission Date)

9
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Higher National Diploma in Computing


Assignment Brief
Student Name /ID Number Sachin Fernando - 00165577
Unit Number and Title Unit 4: Database Design & Development
Academic Year 2022/23
Unit Tutor Ann Roshanie
Assignment Title Data base system for Quiet Attic Films
Issue Date 30/04/2023
Submission Date 30/03/2023
IV Name & 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:

Assignment brief

10
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Quiet Attic Films is a film production company based in London, England who specialize in
making short information films and advertisements for television. They want you to design
and implement a database that meets the requirements for their data. These requirements are
specified in this scenario and the examples of paper documents kept by the company shown
below.
Quiet Attic Films organize their data around the concept of a ‘production’. A production is
specified as being for a particular client; but note that a client might have more than one
production at any time. A production will take place at one or more locations. A production
will also use a number of, what are called, properties, which might be anything from an

actual property like a building, to costumes or small items of any sort. It is important to keep
a record of which properties are required at which location.
There should also be a record kept of the staff types that are assigned to productions.

11
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Activity 1
Identify the user and system requirements to design a database for the above scenario and
design a relational database system using conceptual design (ER Model) by including
identifiers (primary Key) of entities and cardinalities, participations of relationships.
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. Check whether the provided logical
design is normalised. If not, normalize the database by removing the anomalies.
(Note:-It is allowed to have your own assumptions and related attributes within the
scope of the case study given)
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
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 and evaluate the database solution developed in
terms of its effectiveness with relevance to the user and system requirements identified,
system security mechanisms (EX: -User groups, access permissions) and the maintenance
of the database. Suggest improvements for any identified problems.

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.
12
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Select/ Where / Update / Between / In / Group by / Order by / Having

Activity 3

3.1 Provide a suitable test plan to test the system against user and system requirements.
provide relevant test cases for the database you have implemented. Assess how the
selected test data can be used to improve the effectiveness of testing.
Note:- Learner needs to give expected results in a tabular format and screenshots of the
actual results with the conclusion

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 a separate conclusion from the feedbacks.

Activity 4

Produce technical and user documentation for a fully functional system, including data
flow diagrams showing movement of data through the system, and flowcharts describing
how the system works. Evaluate the developed database by suggesting future
enhancements to ensure the effectiveness of the system.

13
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

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, which includes interface and output designs, data
validations and data normalization.

D1 Evaluate the effectiveness of the design in relation to


user and system requirements.

xiv
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

LO2 Develop a fully-functional relational database system,


based on an existing system design

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

LO3 Test the systems against user and system


requirements

xv
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

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.

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 data flow diagrams and
flowcharts, describing how the system works.
D3 Evaluate the database in terms of improvements needed
to ensure the continued effectiveness of the system.

xvi
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Table of Contents
Introduction................................................................................................................................5

Activity 01..................................................................................................................................6

LO1 Use an appropriate design tool to design a relational database system for a substantial
problem..................................................................................................................................6

1.1 User and System Requirement of Quiet Attic Films................................................6

1.1.1 ERD......................................................................................................................9

1.1.1 Relational Schema..............................................................................................11

1.1.2 Logical Schema..................................................................................................12

1.2.1 Data Normalization............................................................................................13

1.2.2 Wire Frames.......................................................................................................19

1.2.3 Data Validation...................................................................................................34

Evaluation of the design in relation to user and system requirements.............................36

Activity 02................................................................................................................................41

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


design...................................................................................................................................41

2.1.1. DDL (Tabel creation And Database Creation)...................................................41

2.1.2. DML (Data Manipulation Language)................................................................44

2.1.3. Database and table creation of Quiet Attic Film................................................46

2.1.4. Screenshot of Quiet Attic Films forms...............................................................52

Activity 03................................................................................................................................55

LO3 Test the systems against user and system requirements...............................................55

3.1 Test the system against user and system requirements..........................................55

Activity 04................................................................................................................................59

LO4 Produce technical and user documentation..................................................................59

1
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

4.1.1. User Manual.......................................................................................................59

Provided below SQL Evidence........................................................................................64

4.1.2. Technical Document...........................................................................................68

Bibliography.............................................................................................................................71

Fg. 1 ERD for Quiet Attic Films................................................................................................9


Fg. 2 Logical Schema...............................................................................................................12
Fg. 3 Login Form for Regular..................................................................................................19
Fg. 4 Users Dashboard for regular users..................................................................................19
Fg. 5 Login form for Admin Users...........................................................................................20
Fg. 6 Dashboard for Admin Users............................................................................................20
Fg. 7 Production Menu.............................................................................................................21
Fg. 8 Create of Product Step 01 (Customer Info)....................................................................21
Fg. 9 Create of Product Step 02 (Product Info).......................................................................22
Fg. 10 Create of Product Step 03 (Location Info)..................................................................22
Fg. 11 Create of Product Step 04 (Saff Info)..........................................................................23
Fg. 12 Create of Product Step 05 (Payment Info).................................................................23
Fg. 13 Customer Menu.............................................................................................................24
Fg. 14 New Customer Create Form..........................................................................................24
Fg. 15 Customer Summary.......................................................................................................25
Fg. 16 Properties Menu............................................................................................................26
Fg. 17 New Property Form.......................................................................................................26
Fg. 18 Property Summary........................................................................................................27
Fg. 19 Location Menu..............................................................................................................28
Fg. 20 New Location Form......................................................................................................28
Fg. 21 Location Summary.......................................................................................................29
Fg. 22 Staff Menu.....................................................................................................................30
Fg. 23 New Staff Form.............................................................................................................30

2
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Fg. 24 Staff Summary.............................................................................................................31


Fg. 25 Overview of all the wireframes.....................................................................................32
Fg. 26 Create Table...................................................................................................................42
Fg. 27 Drop Table.....................................................................................................................42
Fg. 28 ALTER Table.................................................................................................................43
Fg. 29 TRUNCATE Table........................................................................................................43
Fg. 30 Insert Into statement......................................................................................................44
Fg. 31 UPDATE statement.......................................................................................................45
Fg. 32 DELETE Statement.......................................................................................................45
Fg. 33 Result of query execution 1...........................................................................................48
Fg. 34 Result of query execution 2...........................................................................................51
Fg. 35 Dashboard For Admin...................................................................................................54
Fg. 36 Products Form...............................................................................................................54
Fg. 37 Customer Form.............................................................................................................55
Fg. 38 Property Form...............................................................................................................55
Fg. 39 Location Form...............................................................................................................56
Fg. 40 Staff Form.....................................................................................................................56
Fg. 41 Error when wrong credentials entered..........................................................................68

3
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Introduction

Quiet Attic Films is a company that produces short informational films and TV
advertisements, and it is located in London, England. In order to manage their data
efficiently, they need a well-organized system, and this report aims to design and implement
a database that meets their requirements. They organize their data around 'production'.
Productions are specified for a particular client. However, a client might have more than one
production at any time. Also, a production requires various types of employees as well as
various properties such as buildings, costumes, vehicles, etc. This report will outline the
database requirements based on the provided examples of paper documents used by the
company to organize their data. This database will improve the company's efficiency by
keeping track of which properties are needed at which location. It will also keep track of
which staff types are assigned to each production.

4
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Activity 01

LO1 Use an appropriate design tool to design a relational database system for a
substantial problem.

1.1 User and System Requirement of Quiet Attic Films

User Requirements
In software engineering, the significance of user and system requirements cannot be
overstated. User requirements pertain to the overarching, abstract requirements that outline
the system's anticipated services and limitations in natural language and visual
representations, aimed at system users. These requirements function as a foundation for the
system's development.[CITATION col \l 1033 ]

System Requirements
System requirements pertain to intricate technical prerequisites that are imperative for
a system to execute its tasks. These requisites encompass functional specifications
(enunciating what the system must perform), data specifications (outlining the data that the
system must process), quality specifications (comprising non-functional requirements such
as precision, dependability, efficiency, and user-friendliness), and constraints that dictate the
parameters under which the system must operate.[ CITATION Mar15 \l 1033 ]

Table 1 User and System Requirement


Source: Author’s work

User Requirements System Requirements


 To accommodate various  “Production” table should be
productions, clients, locations, created.
properties, and staff types, the  “Client” table should be created.
database should be designed  “Location” table should be created.
accordingly.  “Staff” table should be created.
 “Staff Type” table should be created.
 The system must have user-  “Property” table should be created.
friendly functionalities that enable  “Payment” table should be created.
hassle-free creation, modification,  “UserAccount” table should be
and removal of productions, created.
clients, locations, properties, and  “Clients_ContactNo” table should be
staff types. created.
 “Location_ContactNo” table should
5
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

 The system must implement be created.


suitable security measures to  “Staff_ContactNo” table should be
safeguard confidential data stored created.
in the database.  “Production_Staff” table should be
created.
 The database should offer search  “Production_Location” table should
functionality that allows users to be created.
effortlessly look up productions,  “Location_Property” table should be
clients, locations, properties, and created.
staff types using varying criteria
such as name, location, date, or  In Production table “Payment_ID”
client. and “Client_ID” are the foreign
keys.
 The system must be capable of  In Staff table “StaffType_ID” is the
tracking the status of productions, foreign key.
such as identifying whether they  In UserAccount table “Staff_ID” is
are in pre-production, production, the foreign key.
or post-production stages.
 In Client_ContactNo table
 The system must enable
“Client_ID” is the foreign key.
scheduling of staff and equipment
 In Location_ContactNo table
for each production.
“Location_ID” is the foreign key.
 The database must monitor the  In Staff_ContactNo table “Staff_ID”
permissions and access levels of is the foreign key.
various users, ensuring that  In Production_Staff table “Prod_ID”
confidential information can only and “Staff_ID” are the foreign keys.
be accessed by authorized  In Production_Location table
individuals. “Prod_ID” and “Location_ID” are
the foreign keys.
 In Location_Property table
 The database must possess a “Location_ID” and “Property_ID”
backup and recovery mechanism are the foreign keys.
to prevent the loss of data in the
occurrence of system failures or
other disasters.

(Space left intentionally)

6
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

1.1.1 ERD

Fg. 1 ERD for Quiet Attic Films


Source: Author’s work

7
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Table 2 Entity Table


Source: Author’s work

ENTITY ATTRIBUTE PRIMARY KEY


Prod_ID, Prod_Name,
Prod_Type, Start_Date,
Production Prod_ID
End_Date, Prod_State,
State, Note
Client_ID, NIC,
First_Name, Last_Name,
Birth_Day. No,
Client Address_Line1, Client_ID
Address_Line2, City, Email,
State,
Contact _No
Location_ID,
Location_Name, No,
Address_Line1,
Location Location_ID
Address_Line2, City, Email,
State,
Contact _No
Staff_ID, First_Name,
Staff Last_Name, Email, State, Staff_ID
Contact_No

StaffType_ID, Type, State,


Staff Type StaffType_ID
Fee

Property_ID,
Property Property_Name, State, Property_ID
Property_Type

Payment_ID, Amount,
Payment Payment_ID
State, Date

User_ID, Username,
Password, First_Name,
UserAccount User_ID
Last_Name, Profile_Picture,
State

Table 3 Reference to Foreign Key

ENTITY FOREIGN KEY


Production Client_ID, Payment_ID

8
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Staff StaffType_ID
UserAccont Staff_ID

1.1.1 Relational Schema

Production (Prod_ID, Prod_Name, Prod_Type, Start_Date, End_Date, Client_ID,


Payment_ID, Note, Prod_State, State)

Client (Client_ID, NIC, First_Name, Last_Name, Birth_Day. No, Address_Line1,


Address_Line2, City, Email, State)

Client_ContactNo (Client_ID, Contact_No, State)

Location (Location_ID, Location_Name, No, Address_Line1, Address_Line2, City, Email,


State)

Location_ContactNo (Location_ID, Contact_No)

Staff Type (StaffType_ID, Type, Fee, State)

Staff (Staff_ID, First_Name, Last_Name, Email, StaffType_ID, State)

Staff_ContactNo (Staff_ID, Contact_No)


Property (Property_ID, Property_Name, Property_Type, State)

Payment (Payment_ID, Amount, Date, State)

UserAccount (User_ID, Username, Password, First_Name, Last_Name, Profile_Picture,


Staff_ID, State)

Production_Staff (Prod_ID, Staff_ID, Date)

Production_Location (Prod_ID, Location_ID, Date)


9
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Location_Property (Location_ID, Property_ID, Date)

1.1.2 Logical Schema

Fg. 2 Logical Schema


Source: Author’s work

10
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

1.2.1 Data Normalization

The implementation of normalization as a database design methodology serves to


decrease the occurrence of data redundancy and mitigate the presence of undesired
characteristics such as Insertion, Update, and Deletion Anomalies. The process of
normalization involves the division of larger tables into smaller ones, which are then linked
together through relationships. The objective of Normalization in SQL is to eradicate
superfluous or repetitive data and guarantee that data is stored in a logical manner.

The concept of data normalization was introduced by Edgar Codd, the originator of
the relational model. This process involved the establishment of the First Normal Form. He
further expanded on this theory by introducing the Second and Third Normal Forms.
Subsequently, he collaborated with Raymond F. Boyce in the formulation of the Boyce-
Codd Normal Form theory. [ CITATION Ric23 \l 1033 ]

List of normalization forms:


 1NF (First Normal Form)
 2NF (Second Normal Form)
 3NF (Third Normal Form)
 BCNF (Boyce-Codd Normal Form)
 4NF (Fourth Normal Form)
 5NF (Fifth Normal Form)
 6NF (Sixth Normal Form)

Further development of the Theory of Data Normalization in MySQL server is currently


underway. Discussions pertaining to 6th Normal Form are known to exist. Nevertheless, in
the majority of pragmatic implementations, the optimal outcome of normalization is attained
through the 3rd Normal Form.

11
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Table 4 Un-normalized Data


Source: Provided
Production Production Number
Client Locations Staff Properties
ID Type of Days
2 Epom 1. Greenwic Advertisemen 2x Featured 5
Motors h Park, t Camera vehicle for
London crew both
2. Windsor 1x locations
Castle Runner
Grounds 1x Wrecked
Producer car for
3 x Actors location 1.

6 Ministry of 1. River Cam, Information 2x None 1


Agriculture Cambridge Film Camera
, Fisheries 2. Quiet Attic crew
and Food Studio 1x
Runner
1x
Producer
1x Voice
actor
7 Ministry of 1. St James’s Training Film 2x Tractor 2
Agriculture Park, Camera
, Fisheries London crew
and Food 1x
Runner
1x
Producer
1 x Voice
actor

 1NF (First Normalization)


The first normal form requires the elimination of multi-valued attributes, allowing
only single values at the intersection of each row and column to avoid the presence of
repeating groups. In order to achieve normalization of a given relation that exhibits a
repeating group, it is necessary to eliminate the repeating group and establish two distinct
relations. The newly formed relation's Primary Key is a composite of the original
relation's Primary Key and a distinct attribute from the recently established relation,
serving as a means of singular identification.[ CITATION Kol22 \l 1033 ]

12
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Table 5 First Normalized Table 01


Source: Author’s work

Production Number of
Client Locations Production Type Properties
ID Days
2 Epom Motors Greenwich Park, Advertisement Wrecked 5
London

2 Epom Motors Greenwich Park, Advertisement Featured 5


London vehicle

2 Epom Motors Windsor Castle Advertisement Featured 5


Grounds vehicle

6 Ministry of River Cam, Information Film None 1


Agriculture, Cambridge
Fisheries and
Food

6 Ministry of Quiet Attic Studio Information Film None 1


Agriculture,
Fisheries and
Food

7 Ministry of St James’s Park, Training Film Tractor 2


Agriculture, London
Fisheries and
Food

Table 6 First Normalized Table 02


Source: Author’s work

Production
Staff
ID

2 Camera crew

2 Camera crew

2 Runner
2 Producer
2 Actors
2 Actors
2 Actors

13
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

6 Camera crew
6 Camera crew
6 Runner
6 Producer
6 Voice actor
7 Camera crew
7 Camera crew
7 Runner
7 Producer
7 Voice actor

 2NF (Second Normalization)


In order for a relation to satisfy the requirements of the second normal form, it is
necessary for the relation to already be in the first normal form. The second normal form
(2NF) is achieved by a relation if and only if the Primary Key is composed of a singular
attribute. In the event that a relation possesses a composite Primary Key, it is necessary for
every non-key attribute to exhibit complete dependency on the entirety of the Primary Key,
rather than on a mere subset of the Primary Key. This is to ensure that no partial dependency
exists. [ CITATION Mar17 \l 1033 ]

Table 7 Second Normalized Table 01


Source: Author’s work

Production ID Client Production Type Number of Days

2 Epom Motors Advertisement 5


6 Ministry of Information Film 1
Agriculture, Fisheries
and Food

7 Ministry of Training Film 2


Agriculture, Fisheries
and Food

14
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Table 8 Second Normalized Table 02 Table 9 Second Normalized Table 03


Source: Author’s work Source: Author’s work

Location ID Location Property ID Property

Greenwich Park, P001 Wrecked car


L001
London
Windsor Castle P002 Featured vehicle
L002 Grounds
P003 Tractor
River Cam,
L003
Cambridge
L004 Quiet Attic Studio
St James’s Park,
L005 London

Table 10 Second Normalized Table 03


Source: Author’s work
Table 11 Second Normalized Table 04
Production_ID Location_ID Source: Author’s work
2 L001
2 L002 Production_ID Property_ID
6 L003 2 P001
6 L004
2 P002
7 L005
7 P003

15
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Table 12 Second Normalized Table 05


Source: Author’s work

Production
Staff
ID

2 Camera crew

2 Camera crew

2 Runner
2 Producer
2 Actors
2 Actors
2 Actors
6 Camera crew
6 Camera crew
6 Runner
6 Producer
6 Voice actor
7 Camera crew
7 Camera crew
7 Runner
7 Producer
7 Voice actor

 3NF (Third Normalization)


The Third Normal Form (3NF) is a methodology for designing database schemas in
relational databases that employs normalization principles to minimize data redundancy,
prevent data anomalies, guarantee referential integrity, and streamline data administration.
Third normal form (3NF) is achieved when a relation satisfies the conditions of second
normal form and has no transitive dependency involving non-prime attributes.[ CITATION
Mit \l 1033 ]

In academic terms, the third normal form (3NF) dictates that non-key attributes in a table
should be eliminated if they do not depend on the primary key.

16
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

1.2.2 Wire Frames

User login flow

Fg. 3 Login Form for Regular


Source: Author’s work

Fg. 4 Users Dashboard for regular users


Source: Author’s work

17
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Admin login flow

Fg. 5 Login form for Admin Users


Source: Author’s work

Fg. 6 Dashboard for Admin Users


Source: Author’s work

18
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Production creation flow

Fg. 7 Production Menu


Source: Author’s work

Fg. 8 Create of Product Step 01 (Customer Info)


Source: Author’s work

19
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Fg. 9 Create of Product Step 02 (Product Info)


Source: Author’s work

Fg. 10 Create of Product Step 03 (Location Info)


Source: Author’s work

20
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Fg. 11 Create of Product Step 04 (Saff Info)


Source: Author’s work

Fg. 12 Create of Product Step 05 (Payment Info)


Source: Author’s work

21
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Add New Customer flow.

Fg. 13 Customer Menu


Source: Author’s work

Fg. 14 New Customer Create Form


Source: Author’s work

22
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Fg. 15 Customer Summary


Source: Author’s work

(Space left intentionally)

23
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Add New Properties low.

Fg. 16 Properties Menu


Source: Author’s work

Fg. 18 Property Summary


Source: Author’s work
24
Sachin Fernando Database Design and Development UNIT_04

Fg. 17 New Property Form Downloaded by Shahana Rifkhan ([email protected])


Source: Author’s work
lOMoARcPSD|12766103

(Space left intentionally)

25
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Add New Location flow.

Fg. 19 Location Menu


Source: Author’s work

Fg. 21 Location Summary


Source: Author’s work
26
Sachin Fernando Database Design and Development UNIT_04

Fg. 20 New Location Form Downloaded by Shahana Rifkhan ([email protected])


Source: Author’s work
lOMoARcPSD|12766103

(Space left intentionally)

27
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Add New Staff flow.

Fg. 22 Staff Menu


Source: Author’s work

Fg. 24 Staff Summary


Source: Author’s work
28
Sachin Fernando Database Design and Development UNIT_04

Fg. 23 New Staff Form Downloaded by Shahana Rifkhan ([email protected])


Source: Author’s work
lOMoARcPSD|12766103

(Space left intentionally)

29
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Overview of all the wireframes

Fg. 25 Overview of all the wireframes


Source: Author’s work

30
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

31
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

1.2.3 Data Validation

Data validation is the act of verifying the precision and excellence of data. The
process involves incorporating multiple verification measures within a system or report to
guarantee the coherence of input and stored data.
Automated systems involve the input of data with limited or absent human oversight.
Consequently, it is imperative to verify that the information inputted into the system is
accurate and adheres to the prescribed quality criteria. The accurate input of data is crucial
for its effective utilization, as any inaccuracies may result in significant challenges in
subsequent reporting processes. Unstructured data, despite being accurately inputted, will
result in associated expenses for the purposes of cleansing, converting, and retention.
[ CITATION Seb23 \l 1033 ]

Types of Data Validation


There exist numerous forms of data validation. The majority of data validation
procedures execute one or more of these verifications to guarantee the accuracy of the data
prior to its storage in the database. Typical forms of data validation checks encompass:

1. Data Type Check


A verification process is conducted to ensure that the data inputted possesses the
appropriate data type. As an illustration, a particular domain may exclusively permit
numerical information. In the event that this condition holds true, the system ought to reject
any data that includes additional characters, such as letters or special symbols.

2. Code Check
The process of code checking is designed to verify that a given field is chosen from a
legitimate set of values or adheres to specific formatting guidelines. As an illustration, the
process of validating a postal code can be simplified by cross-referencing it with a roster of
authorized codes. The aforementioned notion can be extended to encompass additional
entities, including but not limited to country codes and NAICS industry codes.

32
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

3. Range Check
The process of code checking is implemented to validate whether a specific field has
been chosen from a legitimate set of values or adheres to predetermined formatting
guidelines. An approach to validating the authenticity of a postal code involves cross-
referencing it with a compilation of verified codes. The aforementioned notion can be
extended to encompass other entities, including but not limited to country codes and NAICS
industry codes.

4. Format Check
Several data types adhere to a predetermined format. A prevalent scenario involves date
columns that are retained in a static configuration, such as "YYYY-MM-DD" or "DD-MM-
YYYY." The implementation of a data validation protocol that guarantees the appropriate
formatting of dates is instrumental in preserving uniformity within data sets and over time.

5. Consistency Check
A consistency check is a logical verification process that ensures the coherence of the
entered data. An illustration involves verifying whether the date of delivery for a package
occurs subsequent to the date of shipment.

6. Uniqueness Check
Certain types of information, such as identification numbers or electronic mail
addresses, possess inherent uniqueness. It is advisable for a database to have distinct entries
in these particular fields. The process of performing a uniqueness check guarantees that an
object is not inserted into a database more than once.

(Space left intentionally)

33
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

34
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Evaluation of the design in relation to user and system requirements


Table 13 Evaluation
Source: Author’s work

User Requirements ERD Wire Frame Evaluate


To accommodate various Production Fulfilled the user's
productions, clients, locations, Client requirements by
properties, and staff, the Location generating entities and
database should be designed Staff interfaces for
accordingly. Property production, client,
The system must be capable location, staff, and
of tracking the status of property.
productions, such as identifying
whether they are in pre-
production, production, or post-
production stages.
The database should offer
search functionality that allows
users to effortlessly look up
productions, clients, locations,
properties, and staff types using
varying criteria such as name,
location, date, or client.

35
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

The system must have user- Production In order to create,


friendly functionalities that Client change, and remove
enable hassle-free creation, Location records, creation flows
modification, and removal of Staff and a summary form are
productions, clients, locations, Property created.
properties, and staff types. Clients_ContactNo
Location_ContactNo
Staff_ContactNo
Production_Staff
Production_Location
Location_Property

36
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

37
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

The system must implement UserAccount This particular


suitable security measures to stipulation is satisfied
safeguard confidential data through the utilization
stored in the database. of two distinct account
classifications,
The database must monitor the specifically user and
permissions and access levels of admin, in conjunction
various users, ensuring that with the regulation of
confidential information can permissions allocated to
only be accessed by authorized each respective user
individuals. type.

The database must monitor the


permissions and access levels of
various users, ensuring that
confidential information can
only be accessed by authorized
individuals.

38
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

The system must enable Production_Staff Creating


scheduling of staff and Production_Staff
equipment for each production. enabled scheduling of
staff and equipment.

The database must possess a In C# code, this


backup and recovery mechanism is applied.
mechanism to prevent the loss
of data in the occurrence of
system failures or other
disasters.

(Space left intentionally)

39
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Activity 02

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


design.

2.1.1. DDL (Tabel creation And Database Creation)

The SQL statements that can be used to specify the database schema make up DDL, or
Data Definition Language. It is used to create and modify the structure of database objects
in the database and only works with descriptions of the database schema. Although data
cannot be created, modified, or deleted with DDL, database structures can. In most cases, a
typical user shouldn't use these commands; instead, they should use an application to access
the database.[ CITATION SQL23 \l 1033 ]
 CREATE: The database or any of its objects (such as tables, indexes, functions,
views, store procedures, and triggers) can be created with this command.

 DROP: This command is used to delete entity from the database.

 ALTER: The process of eliminating all entries from a table, which involves the
removal of all associated storage space, is commonly referred to as truncation.

 TRUNCATE: The process of eliminating all entries from a table, which includes the
removal of all allocated spaces for the entries.

 COMMENT: The function of this feature is to append remarks to the data dictionary.

 RENAME: The process of altering the name of an object that currently exists within
a database.

40
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Examples form Quiet Attic Films,

Fg. 26 Create Table


Source: Author’s work

Fg. 28 ALTER Table


Fg. 27 Drop Table
Source: Author’s work
Source: Author’s work

41
Sachin Fernando Database Design and Development UNIT_04
Fg. 29 TRUNCATE Table
Source: Author’s work

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

2.1.2. DML (Data Manipulation Language)

DML, or Data Manipulation Language, encompasses the majority of SQL


statements that pertain to the manipulation of data within a database. The SQL
statement comprises a component that regulates data access and database
accessibility. DCL statements are typically categorized alongside DML statements.

The INSERT statement is utilized to add data to a specified table.

Fg. 30 Insert Into statement.


Source: Author’s work

42
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

The UPDATE statement is utilized to modify or update pre-existing data within a


given table.

Fg. 31 UPDATE statement


Source: Author’s work

The DELETE operation is utilized to remove data entries from a specific table within
a database.

Fg. 32 DELETE Statement


Source: Author’s work

43
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

2.1.3. Database and table creation of Quiet Attic Film

SQL query for Quiet Attic Film database and table creation

Create database Quiet_Attic_Films;

USE Quiet_Attic_Films;

Create Table Property (

Property_ID varchar(8) NOT NULL PRIMARY KEY,

Property_Name varchar(50) NOT NULL,

Property_Type varchar(50) NOT NULL

);

Create Table Staff_Type(

StaffType_ID varchar(8) NOT NULL PRIMARY KEY,

Type varchar(50) NOT NULL,

Fee decimal(10,2) NOT NULL

);

44
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Create Table Staff(

Staff_ID varchar(8) NOT NULL PRIMARY KEY,

F_Name varchar(50) NOT NULL,

L_Name varchar(50) NOT NULL,

email varchar(62) NOT NULL,

StaffType_ID varchar(8),

Foreign KEY (StaffType_ID) References Staff_Type(StaffType_ID)

);

Create Table Staff_Contact(

Staff_ID varchar(8) NOT NULL ,

Contact_No varchar(15) NOT NULL,

PRIMARY KEY (Staff_ID,Contact_No),

Foreign KEY (Staff_ID) References Staff(Staff_ID)

);

Create Table Client(


45
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Client_ID varchar(8) NOT NULL PRIMARY KEY,

NIC varchar(15) UNIQUE NOT NULL,

F_Name varchar(50) NOT NULL,

L_Name varchar(50) NOT NULL,

No varchar(8),

Lane_1 varchar(50) ,

Lane_2 varchar(50) ,

City varchar(50) ,

email varchar(62) ,

Birth_Day date

Create Table Client_ContactNo(

Client_ID varchar(8) NOT NULL,

Contact_No varchar(15) NOT NULL,

PRIMARY KEY (Client_ID,Contact_No),

Foreign KEY (Client_ID) References Client(Client_ID)

);

46
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Create Table Payment(

Payment_ID varchar(8) NOT NULL PRIMARY KEY,

Amount decimal(10,2),

Date date

);

Create Table Location(

Location_ID varchar(8) NOT NULL PRIMARY KEY,

Location_Name varchar(50) NOT NULL,

No varchar(8),

Lane_1 varchar(50),

Lane_2 varchar(50),

City varchar(50),

email varchar(62)

);

Create Table Location_ContactNo(


47
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Location_ID varchar(8) NOT NULL,

Contact_No varchar(15) NOT NULL,

PRIMARY KEY (Location_ID,Contact_No),

Foreign KEY (Location_ID) References Location(Location_ID)

);

Create Table Production(

Prod_ID varchar(8) NOT NULL PRIMARY KEY,

Prod_Name varchar(50) NOT NULL,

Start_Date date NOT NULL,

End_Date date NOT NULL,

Note varchar(255),

Payment_ID varchar(8) NOT NULL,

Client_ID varchar(8) NOT NULL,

Foreign KEY (Payment_ID) References Payment(Payment_ID),

Foreign KEY (Client_ID) References Client(Client_ID),

);

48
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Create Table Production_Location(

Prod_ID varchar(8),

Location_ID varchar(8),

Date date NOT NULL,

PRIMARY KEY (Prod_ID,Location_ID),

Foreign KEY (Prod_ID) References Production(Prod_ID),

Foreign KEY (Location_ID) References Location(Location_ID)

);

Create Table Production_Staff(

Prod_ID varchar(8),

Staff_ID varchar(8),

Date date NOT NULL,

PRIMARY KEY (Prod_ID,Staff_ID),

Foreign KEY (Prod_ID) References Production(Prod_ID),

Foreign KEY (Staff_ID) References Staff(Staff_ID)

);

49
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Create Table Location_Property(

Location_ID varchar(8),

Property_ID varchar(8),

Date date NOT NULL,

PRIMARY KEY (Location_ID,Property_ID),

Foreign KEY (Location_ID) References Location(Location_ID),

Foreign KEY (Property_ID) References Property(Property_ID)

);

Create Table User_Account(

User_ID varchar(8) NOT NULL PRIMARY KEY,

Username varchar(50) UNIQUE NOT NULL,

email varchar(255) UNIQUE NOT NULL,

Password varchar(256),

F_Name varchar(50) NOT NULL,

L_Name varchar(50) NOT NULL,

Profile_Picture image,

User_Type varchar(8),

StaffType_ID varchar(8),
50
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Foreign KEY (StaffType_ID) References Staff_Type(StaffType_ID)


);

Result of query execution

Fg. 33 Result of query execution 1


Source: Author’s work

Insert sample data

INSERT INTO Property (Property_ID, Property_Name, Property_Type)

VALUES ('P001', 'Camera', 'Equipment'),

('P002', 'Lighting Kit', 'Equipment'),

('P003', 'Gimbal', 'Equipment'),

('P004', 'Green Screen', 'Equipment'),

51
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

('P005', 'Microphone', 'Equipment');

INSERT INTO Staff_Type (StaffType_ID, Type, Fee)

VALUES ('ST001', 'Director', 500.00),

('ST002', 'Producer', 400.00),

('ST003', 'Cinematographer', 350.00),

('ST004', 'Editor', 300.00),

('ST005', 'Sound Designer', 250.00);

INSERT INTO Staff (Staff_ID, F_Name, L_Name, email, StaffType_ID)

VALUES ('S001', 'John', 'Doe', '[email protected]', 'ST001'),

('S002', 'Jane', 'Doe', '[email protected]', 'ST002'),

('S003', 'Alex', 'Smith', '[email protected]', 'ST003'),

('S004', 'Rachel', 'Green', '[email protected]', 'ST004'),

('S005', 'Mike', 'Ross', '[email protected]', 'ST005');

INSERT INTO Staff_Contact (Staff_ID, Contact_No)

VALUES ('S001', '1234567890'),

('S002', '2345678901'),

('S003', '3456789012'),
52
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

('S004', '4567890123'),

('S005', '5678901234');

INSERT INTO Client (Client_ID, NIC, F_Name, L_Name, No, Lane_1, Lane_2, City, email,
Birth_Day)

VALUES ('C001', '1234567890123', 'Alice', 'Smith', '10', 'Main Street', 'Suburbia',


'City', '[email protected]', '1990-01-01'),

('C002', '2345678901234', 'Bob', 'Johnson', '20', 'Broadway', 'Downtown', 'City',


'[email protected]', '1995-05-05'),

('C003', '3456789012345', 'Charlie', 'Garcia', '30', 'Park Avenue', 'City Center',


'City', '[email protected]', '1985-10-10'),

('C004', '4567890123456', 'Dave', 'Patel', '40', 'Oak Street', 'Old City', 'City',
'[email protected]', '1980-02-15'),

('C005', '5678901234567', 'Emma', 'Lee', '50', 'Lakeview', 'New City', 'City',


'[email protected]', '2000-11-20');

INSERT INTO Client_ContactNo (Client_ID, Contact_No)

VALUES ('C001', '1234567890'),

('C002', '2345678901'),

('C003', '3456789012'),

('C004', '4567890123'),

('C005', '5678901234');

INSERT INTO Payment (Payment_ID, Amount, Date)

53
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

VALUES ('PY001', 5000.00, '2022-01-01'),

('PY002', 6000.00, '2022-02-01'),

('PY003', 7000.00, '2022-03-01'),

('PY004', 8000.00, '2022-04-01'),

('PY005', 9000.00, '2022-05-01');

INSERT INTO Location (Location_ID, Location_Name, No, Lane_1, Lane_2, City, email)

VALUES ('L001', 'Studio A', '100', 'Main Street', 'Suburbia', 'City',


'[email protected]'),

('L002', 'Studio B', '200', 'Broadway', 'Downtown', 'City', '[email protected]'),

('L003', 'Outdoor', 'Park', 'Park Avenue', 'City Center', 'City',


'[email protected]'),

('L004', 'Office', '300', 'Oak Street', 'Old City', 'City', '[email protected]'),

('L005', 'Rooftop', '400', 'Lakeview', 'New City', 'City', '[email protected]');

INSERT INTO Location_ContactNo (Location_ID, Contact_No)

VALUES ('L001', '1234567890'),

('L002', '2345678901'),

('L003', '3456789012'),

('L004', '4567890123'),

('L005', '5678901234');

54
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

INSERT INTO Production (Prod_ID, Prod_Name, Start_Date, End_Date, Note, Payment_ID,


Client_ID)

VALUES ('PR001', 'Short Film - The Quiet Attic', '2023-06-01', '2023-06-15', 'Romantic
comedy genre', 'PM001', 'C001'),

('PR002', 'Web Series - The Roommates', '2023-08-01', '2023-09-30', 'Comedy genre',


'PY002', 'C002'),

('PR003', 'Documentary - The Making of Titanic', '2023-05-01', '2023-05-31', 'Behind


the scenes of the Titanic movie', 'PY003', 'C003'),

('PR004', 'Short Film - The Painter', '2023-07-01', '2023-07-15', 'Drama genre',


'PY004', 'C004'),

('PR005', 'TV Show - The Inheritance', '2023-09-01', '2023-10-31', 'Drama genre',


'PY005', 'C005');

INSERT INTO Production_Location (Prod_ID, Location_ID, Date)

VALUES ('PR001', 'L001', '2023-05-01'),

('PR001', 'L002', '2023-05-02'),

('PR002', 'L003', '2023-06-01'),

('PR002', 'L004', '2023-06-02'),

('PR002', 'L005', '2023-06-03');

INSERT INTO Production_Staff (Prod_ID, Staff_ID, Date)

VALUES ('PR001', 'S001', '2023-05-01'),

('PR001', 'S002', '2023-05-02'),

55
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

('PR001', 'S003', '2023-05-03'),

('PR002', 'S004', '2023-06-01'),

('PR002', 'S005', '2023-06-02');

INSERT INTO Location_Property (Location_ID, Property_ID, Date)

VALUES ('L001', 'P001', '2023-05-01'),

('L001', 'P002', '2023-05-02'),

('L002', 'P003', '2023-05-01'),

('L003', 'P004', '2023-06-01'),

('L004', 'P005', '2023-06-02');

INSERT INTO User_Account (User_ID, Username, email, Password, F_Name, L_Name,


User_Type, StaffType_ID)

VALUES ('U001', 'johnny', '[email protected]', 'password123', 'John', 'Doe',


'client', NULL),

('U002', 'janedoe', '[email protected]', 'password456', 'Jane', 'Doe', 'staff',


'ST002'),

('U003', 'alexsmith', '[email protected]', 'password789', 'Alex', 'Smith',


'staff', 'ST003'),

('U004', 'rachelg', '[email protected]', 'passwordabc', 'Rachel', 'Green', 'client',


NULL),

('U005', 'miker', '[email protected]', 'passworddef', 'Mike', 'Ross', 'staff',


'ST005');

56
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Result of query execution

Fg. 34 Result of query execution 2


Source: Author’s work

(Space left intentionally)

57
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

2.1.4. Screenshot of Quiet Attic Films forms

Fg. 35 Dashboard For Admin


Source: Author’s work

Fg. 36 Products Form


Source: Author’s work 58
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Fg. 37 Customer Form


Source: Author’s work

Fg. 38 Property Form


Source: Author’s work

59
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Fg. 39 Location Form


Source: Author’s work

Fg. 40 Staff Form


Source: Author’s work

60
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Activity 03

LO3 Test the systems against user and system requirements

3.1 Test the system against user and system requirements.

Table 14 Test Cases


Source: Author’s work

Test ID Test Case Expected Result


T001 Create a new production, The new data should be
client, location, property, stored in the respective
and staff type. tables of the database
without any errors.
T002 Modify an existing The changes should be
production, client, location, updated in the respective
property, or staff type. tables of the database
without any errors.
T003 Remove a production, The data should be deleted
client, location, property, or from the respective tables of
staff type from the database. the database without any
errors.
T004 Search for a production, The search should return the
client, location, property, or correct data based on the
staff type using various given criteria.
criteria such as name,
location, date, or client.

61
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Table 15 Test Results


Source: Author’s work

Pass
Test Expected
Test Case Actual Result(ss) or
ID Result
Fail

62
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

T001 Create a The new Pass


new data
production, should be
client, stored in
location, the
property, respective
and staff tables of
type. the
database
without
any errors.

63
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

T002 Modify an The Pass


existing changes
production, should be
client, updated in
location, the
property, or respective
staff type. tables of
the
database
without
any errors.

T003 Remove a The data Pass


production, should be
client, deleted
location, from the
property, or respective
staff type tables of
from the the
database. database
without
any errors.

64
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

T004 Search for a The search Pass


production, should
client, return the
location, correct
property, or data based
staff type on the
using given
various criteria.
criteria such
as name,
location,
date, or
client.

65
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Activity 04

LO4 Produce technical and user documentation

4.1.1. User Manual

Quiet Attic Films System


User Manual

DESIGNED BY:SACHIN FERNANDO

Greetings, client.
We value your choice to collaborate with FM Software Developers on the software
development for Quiet Attic Films Production as it has given RD a new client. We want you
to have a positive experience using our goods and services. I also expect you to and
suggestions given by the authorized customer helpline. Please use the servicing method if you
have any issues utilizing the products. I truly appreciate your assistance. Your appreciation
and constructive comments are also a huge boost for FM.

I'm grateful.
66
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Team of FM Sales & Developers.

Functions Available in the Quiet Attic Films System, is as follow:

Table 16 Functions available in the system


Source: Author’s work

ENTITY FUNCTION
Property  Add
 Update
 Delete
Location  Add
 Update
 Delete
Staff type  Add
 Update
 Delete
Staff  Add
 Update
 Delete
 View summary & print options available
 Search
Production  Add
 Update
 Delete
Client  Add
 Update
 Delete
 View summary & print options available
 Search
Payment  Add
 Update
 Delete
 View summary & print options available
 Search
Instruction to the user
Step-by-step instructions are provided here on how to use the whole Quiet Attic Films
system.

67
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Instruction to be followed:

• By following the given below procedures, this database system may be configured to work
in any network or office environment.

For example, if you select the customer option from the admin dashboard:

 The Admin Panel provides access to the following Departments:

 Choose any option as per your need from the options available. For all the option the
same pattern follows as below.

68
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

 The following occurs will be displayed when you selected the option Create New;

 Here, you can search for Customer information.


 If you want to edit or delete the customer data, simple press the given button to
undergo the changes as this privilege is only given to the admin.

69
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

 For example, if you select the Properties option from the User dashboard:

70
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

 Choose any option as per your need from the options available. For all the options the
same pattern follows as below.

Provided below SQL Evidence

The Quiet Attic Films Database is


accessible using Object Explorer.

71
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Expanded view

What causes Error


Incorrect data entered into the system can frequently result in errors.
1. Businesses use technology without encountering issues - In this case, hiring
qualified administrators with practical IT knowledge is the best plan of action.
Additionally, before using the system for official purposes, perform a trail test to
make sure it works as intended.

2. Error correction - Since big defects are usually repaired during testing before a
product is offered to a customer, tiny errors are frequently made when incorrect data
is submitted. If you wish to fix this, be sure to offer true information.
A typical mistake may be:

72
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Fg. 41 Error when wrong credentials entered.


Source: Author’s work

Be Aware:
Please get in touch with FM Company's authorized maintenance personnel if the product
isn't working properly; the developer will help you fix the problem.

• Still, if issues persist, please get in touch with your system developer.
Copyright:
All rights are reserved by FM Company, a Tech Log Co. Pvt. Ltd. subsidiary that is
registered in New Zealand and many other nations. Tech Log International Co. Pvt. Ltd.
oversees our activities.

Product developer:
Sachin Fernando works at FM Company as a product developer.
We appreciate your choose FM Company.

73
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Contact Us
TEL: 011 278 9076
FAX: 011 278 9077
Mail: [email protected]
Website: www.synapsesoft.com
Twitter: @SynapseSoft
Facebook: @SynapseSoftInc
Instagram: @SynapseSoft

(Space left intentionally)

74
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

4.1.2. Technical Document

System Specifications

Hardware requirements
Processor : Intel Core i5 or higher
RAM : 8 GB or higher
Hard Disk : 500 GB or higher
Monitor : 17-inch LCD or higher
Network Interface Card (NIC)
Keyboard and Mouse
Backup devices

Software requirements
Operating System : Windows 10 or higher, or Windows Server 2012 or higher
.NET Framework : version 5.0 or higher
Visual Studio : 2022 or higher
Microsoft SQL Server: 2022 or higher
Microsoft SQL Server Management Studio (SSMS): 2014 or higher
Microsoft Azure Storage for backups and disaster recovery.

(Space left intentionally)

75
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Flow chart

Login

Fg. 42 Flow chart for login


Source: Author’s work

(Space left intentionally)

76
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Use case diagram.

77
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])


lOMoARcPSD|12766103

Bibliography

Anon., 2023. SQL | DDL, DQL, DML, DCL and TCL Commands. [Online]
Available at: https://www.geeksforgeeks.org/sql-ddl-dql-dml-dcl-tcl-commands/
Chris, K., 2022. Database Normalization – Normal Forms 1nf 2nf 3nf Table Examples.
[Online]
Available at: https://www.freecodecamp.org/news/database-normalization-1nf-2nf-3nf-
table-examples/
Collegenote, n.d. Concept of User and System Requirements. [Online]
Available at: https://www.collegenote.net/curriculum/software-engineering-csit/54/309/
Peterson, R., 2023. What is Normalization in DBMS (SQL)? 1NF, 2NF, 3NF Example.
[Online]
Available at: https://www.guru99.com/database-normalization.html
Rouse, M., 2015. Techopedia. [Online]
Available at: https://www.techopedia.com/definition/4371/system-requirements
Rouse, M., 2017. Second Normal Form. [Online]
Available at: https://www.techopedia.com/definition/21980/second-normal-form-2nf
Taylor, S., 2023. Data Validation. [Online]
Available at: https://corporatefinanceinstitute.com/resources/data-science/data-validation/
Upadhyay, M., n.d. Third Normal Form (3NF). [Online]
Available at: https://www.geeksforgeeks.org/third-normal-form-3nf/

78
Sachin Fernando Database Design and Development UNIT_04

Downloaded by Shahana Rifkhan ([email protected])

You might also like