Professional Documents
Culture Documents
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)
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.
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
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
Figure 1 introduction
Figure 2 content
Figure 3 summary
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_Phone_Number
100 0772536541
100 0775825316
101 0705263852
102 0752685236
103 0702596845
104 0775245689
104 0705248754
EER Diagram
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.
This page gives you first enter your Email ID And Password Log in for Room
Booking.
This page is shows enter for further details and after press the submit button
The room was allocated for your purpose
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.
This is a contact page for customer easily to communicate with the hotel
Hardware Requirements –
Software Requirements:
Operating system -
Database -
• MYSQL Database
Create Database
This figure above shown here is about creating database Kings bury hotel
management
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
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.
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.
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
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.
This is the user privileges tab, which you can use to create a new user and
assign privileges to them.
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
accounts will never be offered additional access, and privileges will be issued
depending on their needs.
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.
This privilege is allowing to alter, drop but I need to change the table details 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.
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.
Select
Inner Join
Delete
Used syntax:
Without removing the table, the following SQL statement deletes the
table in the "hotel_payment" table:
Update
Insert
This is Insert function for hotel_payment is shown in this figure. To add new
records to a table, use the INSERT INTO statement
sum
Figure 45 sum
Max
Figure 46 maximum
Min
Figure 47 minimum
Count
Figure 48 count
AVG
Figure 49 Avg
Data verification
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
Functional testing
Non-functional 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.
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 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
Hardware requirements
Regarding database installation, you'll could use a physical or virtual
service with the following features.
• 2 CPU Cores
• Disk I/O subsystem applicable to a write-intensive database.
• 2 GB RAM
Software Requirements
Operating System.
Database
Flowchart
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
Conclusion
• 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
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].
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].
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].
%20database%20testing%20involves%20verifying,changehttps://
www.microfocus.com/enus/what-is/functional-testingd%20by%20the%20end
%20users> [Accessed 23 Nov 2022].