Database2024-Not para
Database2024-Not para
Unit 04 - Database
Higher Nationals
Internal verification of assessment decisions – BTEC (RQF)
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?
2
Sachin Fernando Database Design and Development UNIT_04
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
3
Sachin Fernando Database Design and Development UNIT_04
* 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
Assessor Date
signature
[email protected] 30/04/2023
Student Date
signature
5
Sachin Fernando Database Design and Development UNIT_04
6
Sachin Fernando Database Design and Development UNIT_04
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.
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.
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
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.
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
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.
9
Sachin Fernando Database Design and Development UNIT_04
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
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
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
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
xiv
Sachin Fernando Database Design and Development UNIT_04
xv
Sachin Fernando Database Design and Development UNIT_04
xvi
Sachin Fernando Database Design and Development UNIT_04
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.1 ERD......................................................................................................................9
Activity 02................................................................................................................................41
Activity 03................................................................................................................................55
Activity 04................................................................................................................................59
1
Sachin Fernando Database Design and Development UNIT_04
Bibliography.............................................................................................................................71
2
Sachin Fernando Database Design and Development UNIT_04
3
Sachin Fernando Database Design and Development UNIT_04
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
Activity 01
LO1 Use an appropriate design tool to design a relational database system for a
substantial problem.
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 ]
6
Sachin Fernando Database Design and Development UNIT_04
1.1.1 ERD
7
Sachin Fernando Database Design and Development UNIT_04
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
8
Sachin Fernando Database Design and Development UNIT_04
Staff StaffType_ID
UserAccont Staff_ID
10
Sachin Fernando Database Design and Development UNIT_04
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 ]
11
Sachin Fernando Database Design and Development UNIT_04
12
Sachin Fernando Database Design and Development UNIT_04
Production Number of
Client Locations Production Type Properties
ID Days
2 Epom Motors Greenwich Park, Advertisement Wrecked 5
London
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
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
14
Sachin Fernando Database Design and Development UNIT_04
15
Sachin Fernando Database Design and Development UNIT_04
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
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
17
Sachin Fernando Database Design and Development UNIT_04
18
Sachin Fernando Database Design and Development UNIT_04
19
Sachin Fernando Database Design and Development UNIT_04
20
Sachin Fernando Database Design and Development UNIT_04
21
Sachin Fernando Database Design and Development UNIT_04
22
Sachin Fernando Database Design and Development UNIT_04
23
Sachin Fernando Database Design and Development UNIT_04
25
Sachin Fernando Database Design and Development UNIT_04
27
Sachin Fernando Database Design and Development UNIT_04
29
Sachin Fernando Database Design and Development UNIT_04
30
Sachin Fernando Database Design and Development UNIT_04
31
Sachin Fernando Database Design and Development UNIT_04
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 ]
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
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.
33
Sachin Fernando Database Design and Development UNIT_04
34
Sachin Fernando Database Design and Development UNIT_04
35
Sachin Fernando Database Design and Development UNIT_04
36
Sachin Fernando Database Design and Development UNIT_04
37
Sachin Fernando Database Design and Development UNIT_04
38
Sachin Fernando Database Design and Development UNIT_04
39
Sachin Fernando Database Design and Development UNIT_04
Activity 02
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.
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
41
Sachin Fernando Database Design and Development UNIT_04
Fg. 29 TRUNCATE Table
Source: Author’s work
42
Sachin Fernando Database Design and Development UNIT_04
The DELETE operation is utilized to remove data entries from a specific table within
a database.
43
Sachin Fernando Database Design and Development UNIT_04
SQL query for Quiet Attic Film database and table creation
USE Quiet_Attic_Films;
);
);
44
Sachin Fernando Database Design and Development UNIT_04
StaffType_ID varchar(8),
);
);
No varchar(8),
Lane_1 varchar(50) ,
Lane_2 varchar(50) ,
City varchar(50) ,
email varchar(62) ,
Birth_Day date
);
46
Sachin Fernando Database Design and Development UNIT_04
Amount decimal(10,2),
Date date
);
No varchar(8),
Lane_1 varchar(50),
Lane_2 varchar(50),
City varchar(50),
email varchar(62)
);
);
Note varchar(255),
);
48
Sachin Fernando Database Design and Development UNIT_04
Prod_ID varchar(8),
Location_ID varchar(8),
);
Prod_ID varchar(8),
Staff_ID varchar(8),
);
49
Sachin Fernando Database Design and Development UNIT_04
Location_ID varchar(8),
Property_ID varchar(8),
);
Password varchar(256),
Profile_Picture image,
User_Type varchar(8),
StaffType_ID varchar(8),
50
Sachin Fernando Database Design and Development UNIT_04
51
Sachin Fernando Database Design and Development UNIT_04
('S002', '2345678901'),
('S003', '3456789012'),
52
Sachin Fernando Database Design and Development UNIT_04
('S004', '4567890123'),
('S005', '5678901234');
INSERT INTO Client (Client_ID, NIC, F_Name, L_Name, No, Lane_1, Lane_2, City, email,
Birth_Day)
('C004', '4567890123456', 'Dave', 'Patel', '40', 'Oak Street', 'Old City', 'City',
'[email protected]', '1980-02-15'),
('C002', '2345678901'),
('C003', '3456789012'),
('C004', '4567890123'),
('C005', '5678901234');
53
Sachin Fernando Database Design and Development UNIT_04
INSERT INTO Location (Location_ID, Location_Name, No, Lane_1, Lane_2, City, email)
('L002', '2345678901'),
('L003', '3456789012'),
('L004', '4567890123'),
('L005', '5678901234');
54
Sachin Fernando Database Design and Development UNIT_04
VALUES ('PR001', 'Short Film - The Quiet Attic', '2023-06-01', '2023-06-15', 'Romantic
comedy genre', 'PM001', 'C001'),
55
Sachin Fernando Database Design and Development UNIT_04
56
Sachin Fernando Database Design and Development UNIT_04
57
Sachin Fernando Database Design and Development UNIT_04
59
Sachin Fernando Database Design and Development UNIT_04
60
Sachin Fernando Database Design and Development UNIT_04
Activity 03
61
Sachin Fernando Database Design and Development UNIT_04
Pass
Test Expected
Test Case Actual Result(ss) or
ID Result
Fail
62
Sachin Fernando Database Design and Development UNIT_04
63
Sachin Fernando Database Design and Development UNIT_04
64
Sachin Fernando Database Design and Development UNIT_04
65
Sachin Fernando Database Design and Development UNIT_04
Activity 04
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
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
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:
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
The following occurs will be displayed when you selected the option Create New;
69
Sachin Fernando Database Design and Development UNIT_04
For example, if you select the Properties option from the User dashboard:
70
Sachin Fernando Database Design and Development UNIT_04
Choose any option as per your need from the options available. For all the options the
same pattern follows as below.
71
Sachin Fernando Database Design and Development UNIT_04
Expanded view
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
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
Contact Us
TEL: 011 278 9076
FAX: 011 278 9077
Mail: [email protected]
Website: www.synapsesoft.com
Twitter: @SynapseSoft
Facebook: @SynapseSoftInc
Instagram: @SynapseSoft
74
Sachin Fernando Database Design and Development UNIT_04
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.
75
Sachin Fernando Database Design and Development UNIT_04
Flow chart
Login
76
Sachin Fernando Database Design and Development UNIT_04
77
Sachin Fernando Database Design and Development UNIT_04
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