You are on page 1of 50

Database Design And

Development
By : R. Jaanujan CSD-20(A)

Ravichandran Jaanujan
DATABASE DESIGN AND DEVELOPMENT

Acknowledgement
The success and conclusion of this assignment compulsory a lot of direction and
assistance from many people and I fortunate to have got this all along the
competition of our assignment work. Whatever I have done is only due to such
direction and assistance and I would not forget to thank them. I respect and thank
lecturer Miss. A. Arathy for giving we chance to do this assignment work and
provided that us all support and direction which made me fulfilled the assignment
on time, we extremely thankful to his provided that such a nice support and
leadership.

I’m thankful because I succeeded to complete this assignment within the time given
by lecturer Miss. A. Arathy. My words will flop to express my sincere honest thanks
to my family, expressly my parents, for all what they did, and still doing, to help me
be at this position and for them continues support and encouragement. Any
mistakes that remain are mine! I thank you all.

R . Jaanujan
CSD – 20(A)

R. Jaanujan Page 1 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Introduction
Database system continue to demand more complex data structures and
interfaces, as applications get increasingly sophisticated. Database design and
development is a fundamental and highly beneficial skill for computing student to
master, regardless of their specialism. On successful completion of this unit
students will be able to use appropriate tools to design and develop a relational
database system for a substantial problem.

Database is an integral part of information system. Knowing database design is the


blueprint of database, the better the design, the better the performance of our
database, thus the system. In lecture we will learn what database design is and
why it is important

Entity Relationship Diagrams may be used to build databases. Entities make up a


typical ER, and each entity has a set of columns that indicate the entity's
characteristics. The concepts of entity and column will be introduced in this lecture.
In Visual Paradigm, we'll also learn how to draw entities and add columns to
entities.

R. Jaanujan Page 2 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Contents

Contents
Acknowledgement..............................................................................................................................1
Introduction..........................................................................................................................................2
LO1 - Use an appropriate design tool to design a relational database system for a
substantial problem............................................................................................................................5
Part 1.1 - Power Point Presentation..........................................................................................5
Part 1.2 – ER Diagram & EER Diagram...................................................................................9
part 1.3 - Using a mock-up or storyboarding took, sketch a comprehensive prototype
model for Kingsbury Hotel Management ...............................................................................13
Part 1.4 Evaluation of the proposed database system............................................................16
LO 2 - Develop a fully functional relational database system, based on an existing system
design.................................................................................................................................................18
Part 2.1 Build the Physical relational database system...........................................................18
Part 2.2 Privilege Matrix...............................................................................................................23
Part 2.3 Implement complex queries..........................................................................................30
LO 3 – Test the system against user and system requirements.............................................35
Part 3.1 - Explain the data validation and verification process...............................................35
Part 3.2 - Review and test the development database system against the user and system
and address your findings and errors and problems encountered in implementing the
database........................................................................................................................................38
L04 Produce technical and user documentation.......................................................................40
Part 4.1 Create user and technical manual for development Database system Explaining
how to use the database system and how to handle the database system technically......40
Part 4.2 Evaluate the Designed database system...................................................................43
Conclusion.........................................................................................................................................44
References........................................................................................................................................45

R. Jaanujan Page 3 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Table of Figures
Figure 1 introduction..............................................................................................................6
Figure 2 content..................................................................................................................... 6
Figure 3 summary..................................................................................................................7
Figure 4 User Requirement..................................................................................................7
Figure 5 system functional requirement.................................................................................8
Figure 6 Nonfunctional requirement......................................................................................8
Figure 7 User required hardware and software......................................................................9
Figure 8 system software Hardware Requirement.................................................................9
Figure 9 ER Diagram for Kingsbury hotel...........................................................................10
Figure 10 EER diagram......................................................................................................13
Figure 11 front page of Kingsbury hotel...............................................................................14
Figure 12 Begin of booking..................................................................................................14
Figure 13 Enter Details for Room Booking..........................................................................15
Figure 14 map page............................................................................................................ 15
Figure 15 Contact page.......................................................................................................16
Figure 16 create database...................................................................................................19
Figure 17 use hotel management........................................................................................19
Figure 18 create table hotel_customer................................................................................19
Figure 19 create table hotel_booking................................................................................20
Figure 20 create table hotel_payment...............................................................................20
Figure 21 create table hotel_Room...................................................................................20
Figure 22 create table hotel_service.....................................................................................21
Figure 23 create table room boy..........................................................................................21
Figure 24 create table waiter............................................................................................21
Figure 25 sample record hotel service.................................................................................22
Figure 26 I have added sample record of hotel_room...................................................22
Figure 27 sample record of hotel_booking...........................................................................22
Figure 28 sample record of waiter...................................................................................23
Figure 29 sample record of hotel_Customer.........................................................................23
Figure 30 sample record of hotel_Payment.........................................................................23
Figure 31 sample record of roomboy...................................................................................24
Figure 32 Privilege matrix...................................................................................................26
Figure 33 Account limitless.................................................................................................26
Figure 34 privilege user name.............................................................................................27
Figure 35 privilege role........................................................................................................27
Figure 36 creating password..............................................................................................28
Figure 37 privilege action....................................................................................................28
Figure 38 access denied....................................................................................................29
Figure 39 Select quire......................................................................................................... 31
Figure 40 Inner join............................................................................................................. 31
Figure 41 delete quire........................................................................................................ 31
Figure 42 update quire........................................................................................................ 33
Figure 43 Insert quire......................................................................................................... 33
Figure 44 Alter and modify quire.........................................................................................33
Figure 45 sum..................................................................................................................... 34
Figure 46 maximum............................................................................................................. 34
Figure 47 minimum.............................................................................................................. 34
Figure 48 count................................................................................................................... 34
Figure 49 Avg...................................................................................................................... 35

R. Jaanujan Page 4 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Figure 50 Flow chart............................................................................................................. 43

R. Jaanujan Page 5 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

LO1 - Use an appropriate design tool to design a


relational database system for a substantial problem.
Part 1.1 - Power Point Presentation

Figure 1 introduction

Figure 2 content

R. Jaanujan Page 6 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Figure 3 summary

Figure 4 User Requirement

R. Jaanujan Page 7 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Figure 5 system functional requirement

Figure 6 Nonfunctional requirement

R. Jaanujan Page 8 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Figure 7 User required hardware and software

Figure 8 system software Hardware Requirement

R. Jaanujan Page 9 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Part 1.2 – ER Diagram & EER Diagram

For x upon which a database is constructed. ER diagrams define the types of


data that will be stored, such as entities and their attributes. They also depict
how entities interact with one another.

Figure 9 ER Diagram for Kingsbury hotel

This is ER Diagram of Kingsbury Hotel management , mentioning the user


requirement using the scenario. Altogether 7 tables are here-
hotel_room,hotel_booking,hotel_payment,waiter,hotel_customer,hotel_service,roo
mboy.

R. Jaanujan Page 10 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Normalization
Normalization is the process of organizing a database to reduce redundancy and
improve data integrity. Normalization also simplifies database design, resulting in an
optimal structure composed of atomic elements.

Unnormalized table

W_ID Wa_Name Wa_Phone_Number Wa_Room_ID


100 Tokyo 0772536541 100
0775825316
101 Finn 0705263852 101
102 Conway 0752685236 102
103 Anderson 0702596845 103
104 Roberson 0775245689 104
0705248754

First Normal Form (1NF)


A relation's first normal form is a taking control in a relational database. Database
normalization is the process of representing a database in terms of relations in
standard normal forms, with the first normal being the bare minimum.

W_ID Wa_Name Wa_Phone_Number Wa_Room_ID


100 Tokyo 0772536541 100
100 Tokyo 0775825316 100
101 Finn 0705263852 101
102 Conway 0752685236 102
103 Anderson 0702596845 103
104 Roberson 0775245689 104
104 Roberson 0705248754 104

Second Normal Form (2NF)


The second step in normalizing a database is to use second normal form (2NF). 2NF
extends the first normal form (1NF). The process of organizing data in a database so
that it meets two basic requirements is known as normalization.

W_ID Wa_Name Wa_Room_ID


100 Tokyo 100
101 Finn 101
102 Conway 102
103 Anderson 103
104 Roberson 104

R. Jaanujan Page 11 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

W_ID Wa_Phone_Number
100 0772536541
100 0775825316
101 0705263852
102 0752685236
103 0702596845
104 0775245689
104 0705248754

R. Jaanujan Page 12 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

EER Diagram

Figure 10 EER diagram

R. Jaanujan Page 13 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

part 1.3 - Using a mock-up or storyboarding took, sketch a


comprehensive prototype model for Kingsbury Hotel Management .

Figure 11 front page of Kingsbury hotel

This is the designed home page of Kingsbury hotel. The hotel front view is
given as a photo and website and opening hour is shown in the above figure.
Further details will be shown in home, Booking Now,Menu,Image,Help and
intro for Kingsbury hotel.

Figure 12 Begin of booking

This page gives you first enter your Email ID And Password Log in for Room
Booking.

R. Jaanujan Page 14 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Figure 13 Enter Details for Room Booking

This page is shows enter for further details and after press the submit button
The room was allocated for your purpose

Figure 14 map page

This page is given with a map to show the location of the hotel, which would
be easy to the customer to access the place in time.

R. Jaanujan Page 15 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Figure 15 Contact page

This is a contact page for customer easily to communicate with the hotel

R. Jaanujan Page 16 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Part 1.4 Evaluation of the proposed database system

A database is a typically organized collection of structured data stored


electronically in a computer system. Data in the most common types
of databases in use today is usually modeled in rows and columns in
a series of tables to make processing and data querying effective.

Here, we are making a computerized database model for Kingsbury


hotel management. As a result, we created the first logical diagrams
to describe the data transfer procedure. We should make up keen and
logistic in these starting factors; only in this way will we be able to
build a well-defined database structure for this program.

By this scenario, we can divide the Kingsbury hotel management into


parts and think of logical requirements to make them computerized,
because they faced several problems manually such as data missing,
updating restrictions, cost, storage and security in maintaining system.

As a result, if we test those specifications, we can easily assess the


entire system.

The user requirement I have used in this scenario:

 Create a record for reserved and available rooms

 Update and save the customer details

 Prepare the final bill At the guest end of their stay

 Additional service provided to the guests may purchase or


hire additional services and products from us, such as
newspapers, cycles, maps, food and drinks. We need to
record all of these

 We provide a restaurant and theatre booking service for


our guests

R. Jaanujan Page 17 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

The system requirements are:

Hardware Requirements –

 CPU :Intel Pentium 4,2.0 GHz,

 Ram : DDR2 1GB,4GB

 Hard disk: 500 GB

 Processor :Intel dual Core,i3 or above

Software Requirements:

Operating system -

• Windows 10 64-bit, Professional level or higher)


• Mac OS X 10.6.1+
• Ubuntu 9.10 (64bit)
• Ubuntu 8.04 (32bit/64bit)

Database -

• MYSQL Database

R. Jaanujan Page 18 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

LO 2 - Develop a fully functional relational database


system, based on an existing system design.
Part 2.1 Build the Physical relational database system.

Create Database

Figure 16 create database

This figure above shown here is about creating database Kings bury hotel
management

Use that database

Figure 17 use hotel management

This figure above shown here is about creating database hotel_


management. And the database name which we are going to use.

Create table hotel_customer

Figure 18 create table hotel_customer

This is table hotel_customer, the primary key of this table is C_ID)


also I have added
F_name,L_Name,Age,Email_Address,NIC_Number, etc. to this table.

R. Jaanujan Page 19 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Create table hotel_booking

Figure 19 create table hotel_booking

This is table hotel_booking C-ID is the foreign key reference


hotel_customer table. This table
B_ID,Room_ID,C_ID,B_Date,Payment_ID

Create table hotel_payment

Figure 20 create table hotel_payment

This is table hotel_payment Payment_Id is the foreignkey . This


table
payment_type,payment_amount,payment_Date,Service_payment

Create table hotel_Room

Figure 21 create table hotel_Room

This is table hotel_Room, the primary key of this table is R_ID)


also I have added
Roomboy_ID,Room_Type,Number_Of_people etc. to this
table

R. Jaanujan Page 20 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Create table hotel_service

Figure 22 create table hotel_service

This is table hotel_service, the primary key of this table is


service_ID also I have added
Service_type ,R_ID ,Service_Date.

Create table room boy

Figure 23 create table room boy

This is table roomboy, the primary key of this table is Rb_ID


also I have added
Name , Phone_Number.

Create table Waiter

Figure 24 create table waiter

This is table waiter, the primary key of this table is W_ID also
I have added Wa_Name,
Wa_Phone_Number,Wa_Room_ID

R. Jaanujan Page 21 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Sample record of hotel_service

Figure 25 sample record hotel service

I have added sample record of hotel_service

Sample record of hotel_room

Figure 26 I have added sample record of hotel_room

I have added sample record of hotel_room

Sample record of hotel_boooking

Figure 27 sample record of


hotel_booking

I have added sample record of hotel_booking

R. Jaanujan Page 22 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Sample record of Waiter

Figure 28 sample record of waiter

I have added sample record of waiter

Sample record of hotel_customer

Figure 29 sample record of hotel_Customer

I have added sample record of hotel_customer

Sample record of hotel_payment

Figure 30 sample record of hotel_Payment

I have added sample record of hotel_payment

R. Jaanujan Page 23 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Sample record of roomboy

Figure 31 sample record of roomboy

I have added sample record of room_boy

Part 2.2 Privilege Matrix

A privilege is a type of authorization name permission, or permission to


perform an action or activity. A MySQL account's rights determine which
operations it is allowed to perform. MySQL privileges vary depending on the
context in which they are used and the degree of operation.

Administrative privileges
Users with administrative rights can manage the MySQL server's operation.
Because these privileges aren't tied to a specific database, they're referred to
as global privileges. Database privileges apply to the database as well as all
of its objects.

Static Privilege Descriptions

ALTER
Allows you to change the structure of tables using the ALTER TABLE
statement. ALTER TABLE also requires the privileges of CREATE and
INSERT. ALTER and DROP on the old table, CREATE and INSERT on the
new table are required when renaming a table.

DELETE
Allows rows to be removed from database tables.

R. Jaanujan Page 24 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

DROP
Allows statements to be used to drop (delete) existing databases, tables, and
views. On a partitioned table, the DROP privilege is required to utilize the
ALTER TABLE... DROP PARTITION statement.

INSERT
Allows rows to be added into database tables. The table-maintenance
statements ANALYZE TABLE, OPTIMIZE TABLE, and REPAIR TABLE all
require INSERT.

CREATE
CREATE enables the creation of new databases and tables with statements.

REFERENCES
The REFERENCES privilege for the parent table is required to create a
foreign key constraint.

SELECT
Allows rows to be picked from database tables. Only SELECT statements that
access tables require the SELECT privilege. Some SELECT statements do
not access tables and can be run on any database without permission.

Tables or views used with EXPLAIN, as well as any underlying tables in view
definitions, require the SELECT privilege.

SHOW DATABASES
The SHOW DATABASE query allows the account to examine database
names. If the server was launched with the —skip-show-database option,
accounts without this privilege see only databases for which they have certain
privileges and cannot use the statement at all.

UPDATE

Allows rows in database tables to be updated.

R. Jaanujan Page 25 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

To administer rights, users and privileges are utilized, and if you are a user at
the Kingsbury hotel, you have several permissions such as delete, update,
and drop; however, you do not have access to other permissions such as
insert. Because of your user permissions, you will be unable to do anything
else.

Figure 32 Privilege matrix

This is the user privileges tab, which you can use to create a new user and
assign privileges to them.

Figure 33 Account limitless

Users can select how many queries they can perform as part of their task in
this section, as well as account limitations.

Every user on the administrative level of a system has a role, and the DBA is
the main role, which means it may conduct all actions, while the other roles
are utilized for specific duties. It will increase our system's accuracy since user

R. Jaanujan Page 26 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

accounts will never be offered additional access, and privileges will be issued
depending on their needs.

Figure 34 privilege user name

Sample picture of workbench when create user privileges

Figure 35 privilege role

R. Jaanujan Page 27 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

When the user selects update privileges and insert privileges, this tab will
allow them to pick other users and provide them some privileges while
denying others. As a result, they won't be able to access any further
information.

Figure 36 creating password

We use the password to access the database as this is a Kingsbury hotel


user.

Figure 37 privilege action

This privilege is allowing to alter, drop but I need to change the table details it

will have Some errors.

R. Jaanujan Page 28 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Figure 38 access denied

Because drop column is not in my privileges, this is an error when


altering it.

Object privileges
An object privilege is the ability to perform a certain operation on an
object or to access the object of another user. Tables, views,
materialized views, indexes, synonyms, sequences, cache groups,
replication schemes, and PL/SQL functions, procedures, and packages
are just a few of the objects available.
The owner of an object has complete control over that object's rights,
which cannot be withdrawn. Other database users can be granted object
privileges by the object's owner.

Control privilege
If you have the Control privilege, you can access a database object and
give and revoke privileges to or from other users on that object. The
Control privilege is only granted to tables, views, nicknames, indexes,
and packages.

Database privileges
Database rights cover both the database and all of its items. These
privileges can be assigned to specific databases or to all databases at
once.

R. Jaanujan Page 29 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Individual privileges
A user's individual permissions can be provided to enable them to
conduct specified tasks on certain items. Users with the administrative
authority Access control or SECADM, or the Control right, can give and
take away rights from other users.

Privileges for database objects


Individual privileges for database objects such as tables, indexes, views,
and stored routines can be provided for individual objects within a
database, all objects of a particular type inside a database (for example,
all tables in a database), or all objects of a given type in all databases.

R. Jaanujan Page 30 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Part 2.3 Implement complex queries

Select

Figure 39 Select quire

This is select function for hotel_Payment is shown in this figure.


The coding: Select*from hotel_payment;
First, in the SELECT clause, give a list of comma-separated columns from
which you want to query data.
Second, on the FORM clause, give the source table and its schema name.
User may provide all the columns in the select list to extract data from all
columns of a table.

Inner Join

Figure 40 Inner join

This is inner join function, I have joined


hotel_customer(F_name ,L_Name,Age) and
hotel_booking(C_Id,B_Id,Room_Id).

Delete

Figure 41 delete quire

R. Jaanujan Page 31 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

This is Delete function for hotel_payment Table is shown in this figure.

Used syntax:

Delete from Doctor where Payment_ID= " 103";

Without removing the table, the following SQL statement deletes the
table in the "hotel_payment" table:

The records that will be deleted are determined by the WHERE


clause.

R. Jaanujan Page 32 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Update

Figure 42 update quire

This is update function for hotel_payment is shown in this figure, I have


changes and update the Payment_Amount of a hotel_payment

Insert

Figure 43 Insert quire

This is Insert function for hotel_payment is shown in this figure. To add new
records to a table, use the INSERT INTO statement

Alter and modify

Figure 44 Alter and modify quire

This is Alter function for hotel_payment is shown in this figure.


I have updated the Payment_Date Date to add more
information.

To add, delete, or modify columns in an existing table, use the ALTER


TABLE statement.

R. Jaanujan Page 33 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

sum

Figure 45 sum

This is a hotel payment table of sum

Max

Figure 46 maximum

This is a hotel payment table of max

Min

Figure 47 minimum

This is a hotel payment table of Min

Count

Figure 48 count

This is a hotel payment table of Count

R. Jaanujan Page 34 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

AVG

Figure 49 Avg

This is a hotel payment table of AVG

R. Jaanujan Page 35 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

LO 3 – Test the system against user and system


requirements

Part 3.1 - Explain the data validation and verification


process

Data validation guarantees that the data is accurate, complete, and


meaningful, whereas data verification ensures that all copies of the
data are identical to the original. As a result, both of these processes
ensure that the company does not lose money owing to data errors.

Tes Expec Actual Succe Evidence


ting ted results ss or
wa results fail
y
1 Primary key Command Succe
worked ss
(repea
successfully
t data)

2 Data type Command Succe


worked ss
(int)
successfully
3 Foreign key Command Succe
worked ss
(Repe
successfully
at
data)
4 ENUM Command Succe
worked ss
Data
successfully
Type

Data verification

The practice of reviewing data for accuracy after a data migration is


known as data verification. Verification comes in a variety of forms:
Full verification entails checking all of the data.

Sampling verification is the process of checking a small sample of


data.

R. Jaanujan Page 36 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Data validation
Before using, importing, or otherwise processing data, it is necessary
to validate its accuracy and quality. Depending on the limits or aims of
the destination, different sorts of validation might be conducted.
Validation of data is a type of data cleansing.

System testing

System testing is a type of software testing that is carried out on an


entire integrated system in order to assess the system's compliance
with the appropriate requirements. Integration testing passed
components are used as input in system testing.

Structural database testing

Structural database testing entails verifying database components


that are not visible to end users. It includes all repository components
that are used to store data and are not altered by end users. This
testing is usually done by database administrators that have a solid
understanding of SQL stored procedures and other topics.

Functional testing

Functional testing is a sort of testing that aims to determine whether


each application feature functions in accordance with the program
requirements. The result of each function is compared to the relevant
requirement to see if it meets the end user's expectations.

Non-functional testing

Non-functional testing is a sort of software testing that examines a


software application's nonfunctional features (performance, usability,
reliability, and so on). It's intended to assess a system's readiness
based on nonfunctional parameters that aren't covered by functional
testing.

R. Jaanujan Page 37 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

White box testing

White box testing is a method of inspecting and verifying the inner


workings of a software system, including its code, infrastructure, and
connections with other systems. In a modern Continuous
Integration/Continuous Delivery (CI/CD) development pipeline, white
box testing is an important aspect of automated build processes.

Black Box Testing

Testing a system with no prior knowledge of its internal workings is


known as black box testing. A tester gives the system under test an
input and watches the output it produces. This allows you to see how
the system reacts to expected and unexpected user activities, as well
as the system's reaction time, usability issues, and reliability
concerns.

Equivalence Class Testing

It is used to keep test coverage appropriate while reducing the


number of viable test cases to an optimal level.

Boundary Value Testing

The values at the borders are the subject of boundary value testing.
This approach assesses whether or not a particular range of values is
acceptable to the system. It is really helpful in minimizing the amount
of test cases. It is best suited for systems when the input falls
between specific ranges.

R. Jaanujan Page 38 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Decision Table Testing

A decision table organizes causes and their consequences into a


matrix. Each column has a distinct combination.

Part 3.2 - Review and test the development database system


against the user and system and address your findings and
errors and problems encountered in implementing the
database.

Error report
Error when create hotel_booking because I enter wrong spelling in
foreign key so I enter write spelling in foreign key

Error when select * from customer because doesn’t use database .so
I use database hotel_management

Error when create table hotel_booking because I enter wrong spelling in


create (ceate) ,so I was change correct word

R. Jaanujan Page 39 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Error when create I enter wrong data type because Payment_Date is “Date” type

But I enter wrong data type int so I was correct that wrong data type

Effectiveness of database solution and improvements in user and system


requirements.

Kingsbury hotel is a public tourist hotel that is structured to


keep the hotel everyday tasks running in order to address the
services needs of public. This project's design (ERD and
logical design) is based on the stated user and system
requirements. Contains all information and data concerning
Booking ,room , payment , hotel service , waiter ,room
boy ,customer . The primary keys are used to connect all
tables in each contact of the database. In that situation, the
user needs should be documented in the system. Users can
input their details on the Kingsbury hotel website. E.g..:

One of the needs in the circumstance (customer) is to input


the information on the website.

R. Jaanujan Page 40 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

L04 Produce technical and user documentation

Part 4.1 Create user and technical manual for development


Database system Explaining how to use the database
system and how to handle the database system technically.

MySQL database System Configuration.

A database is a stand-alone program that stores a set of data. For


creating, accessing, managing, searching, and replicating the data
it holds, each database includes one or more APIs.

MySQL is a quick, easy-to-use relational database management


system (RDBMS) that is utilized by many small and large
enterprises. MySQL AB, a Swedish business, is responsible for its
development, marketing, and support.

If you need to manage a large database system, you can install


MySQL on a single server or several servers. If you need to
handle a large database system, you can use a necessary server
to install the system's pieces. Examples include a web server,
computational components, a database, a web service, a
document archive, and so forth.

Hardware requirements
Regarding database installation, you'll could use a physical or virtual
service with the following features.

Minimum Hardware Requirement.

• 2 CPU Cores
• Disk I/O subsystem applicable to a write-intensive database.
• 2 GB RAM

Recommended Hardware Requirements.

This section describes the recommended hardware


requirements for the Enterprise Service Manager.

R. Jaanujan Page 41 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

• 4 CPU Cores or more


• 8 GB RAM or more
• RAID10 or RAID 0+1 disk setup

Software Requirements
Operating System.

Any operating system that supports this software


can be used (Windows operating system is best
because MySQL is more extensively tested on it).

The following operating systems are officially


supported:

• Windows 7 (64-bit, Professional level or higher)


• Mac OS X 10.6.1+
• Ubuntu 9.10 (64bit)
• Ubuntu 8.04 (32bit/64bit)
• For convenience the following builds are also
available:
• Windows XP SP3, Vista
• Mac OSX (10.5 and 10.6) Intel
• Ubuntu 8.04 (i386/x64)
• Ubuntu 9.04 (i386/x64)
• Fedora 11 (i386/x64)

Database

MySQL, Oracle databases now mostly used in the world. At


this time, we created this database system using MySQL so I
recommended MySQL database is best.

R. Jaanujan Page 42 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Flowchart

Figure 50 Flow chart

R. Jaanujan Page 43 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Part 4.2 Evaluate the Designed database system

Future improvements
A database management system (DBMS) is basically a computerized data storage
system. We must consider some things when creating a Database. Such as:
• Visualization & Reporting
• Security
• Functionality
• Support & Development
• Integration
• Scalability
• Cost and Suitability
Although, we can’t consider these all thinks appropriately when creating the Database. So,
we must consider these things when improvement the system. The design of Database has
to consider and improve. The six principles listed below are just a few suggestions for
improving a database design
• Evaluate Primary Key Assignments.
• Evaluate Naming Conventions.
• Refine Attribute Atomicity.
• Identify New Attributes.
• Identify New Relationships.
• Refine Primary Keys as Required for Data Granularity.
Another thing is usability. That means consider how user-friendly the system will be for all
those members of staff required to use it. We also can improvement the system through
getting feedback from users

R. Jaanujan Page 44 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Conclusion

Databases help us keep track of the information we need to succeed on a daily


basis. Another reason database systems were created was so that businesses
could keep track of huge amounts of data in a single location. By putting in key
phrases, queries help find this info faster. This boosts workplace productivity.
Forms are created to save the reports so that we can offer the information to
others. There are major dangers in the world. If firms do not discover these flaws in
time, they might become serious difficulties if they are not properly monitored.

The process of obtaining real-world specifications, evaluating requirements,


designing the data and functions of the system, and then implementing the
operations in the system is known as database application creation. There are
some types of databases.

• Distributed Database
• Relational Database
• Centralized Database
• Cloud Database
• Object-oriented Databases

The six steps of the Database Life Cycle are database initial analysis, database design,
installation and loading, testing and evaluation, operation, and maintenance and evolution
(DBLC). Data consistency is guaranteed because there is no data replication in a database.
All data in the database is consistent, and all users who access it see the same information.
Additionally, any database updates are automatically replicated to all users, ensuring that
data consistency is maintained

R. Jaanujan Page 45 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

References
Vertabelo Data Modeler. 2022. Why Do You Need an ER Diagram? [online]
Available at:
<https://vertabelo.com/blog/why-need-an-er-diagram/> [Accessed 12 Nov 2022].

SearchDataManagement. 2022. What is Database Normalization? [Online]


Available at:
<https://www.techtarget.com/searchdatamanagement/definition/normalization>
[Accessed 11 Nov 2022].

Compare the Difference Between Similar Terms. 2022. Difference Between Data
Validation and Data Verification | Compare the Difference Between Similar Terms.
[Online] Available at: <https://www.differencebetween.com/difference-between-
data-validation-and-vs-dataverification/
#:~:text=Data%20Validation%20vs%20Data%20Verification&text=Data
%20validation%20m aches %20sure%20that,unexpected%20errors%20in%20the
%20data.> [Accessed 11 Nov 2022].

Informatica.com. 2022. What is Data Validation: Definition | Informatica India.


[Online] Available at: <https:
//www.informatica.com/in/services-and-training/glossary-of-terms/datavalidation-
definition.> [Accessed 14 Nov 2022].

Guru99. 2022. What is Non Functional Testing? Types with Example. [Online] Available at:
<https://www.guru99.com/non-functional-
testing.html#:~:text=NON%2DFUNCTIONAL%20TESTI NG%20is%20defined,
never%20addressed%20by%20functional%20testing.> [Accessed 12 Nov 2022].

Tutorialspoint.com. 2022. Database Testing –Types. [Online] Available at:


<https://www.tutorialspoint.com/database_testing/
database_testing_types.htm#:~:text=Struc tural

%20database%20testing%20involves%20verifying,changehttps://
www.microfocus.com/enus/what-is/functional-testingd%20by%20the%20end
%20users> [Accessed 23 Nov 2022].

R. Jaanujan Page 46 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

Download.nust.na. 2022. MySQL: MySQL Workbench: 3.2 Software Requirements.


[Online] Available at: <http://download.nust.na/pub6/mysql/doc/workbench/en/wb-
requirementssoftware.html> [Accessed 20 Nov 2022].

R. Jaanujan Page 47 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

R. Jaanujan Page 48 of 50 J/IT/22/20/25


DATABASE DESIGN AND DEVELOPMENT

R. Jaanujan Page 49 of 50 J/IT/22/20/25

You might also like