Mysql Database Project
Mysql Database Project
Mysql Database Project
This assignment is expanded report which is essentially data base system nothing
more than a computerized records keeping system. The user of system will be
given facilities to perform a verify of operations data record such as inserting,
retrieving, updating and deleting data.
Describe for given scenario of Hotel room booking and Critical review.
Design a database via entity relationship diagram with Microsoft SQL
server,
Implementation of SQL server database via DDL and DML,
Demonstrate advance SQL server features.
Design database model , that use of Microsoft SQL server 2008,Microsoft visual Studio
versions, C# programming Language, and ASP.net .
This database was created with a future plan to use it online room booking system
via web application. This system enhancing study enabled customers to book
reservations for whatever system they want to place them where before lodging. The
database will also provide large number of reports and information.
Case study
3.1. Case Study Scenario
Hotel room booking is designed to hold information relating to a system. It is
needed to defined facts are the requirements which the database must meet and
should agreed between database user and the database designer prior to physical
creation. System will facilities some of the below functions and more,
Room facilities
1|Page
Room band
Room prices
Available rooms
Discount
A local hotel needs a database that keeps track of its booking current, future,
achieved , rooms and guest. Database will design several tables which is connected
to each other base on the relationships.
Additional Considerations
This database will be implementing with a future plan to use it online room booking
system via web application. This system enhancing study enabled customers to book
reservations for whatever system. They want to place then where before lodging.
Additionally this database will be supposed to implement the storage of guest details so
that larger collection
Deliverables
Advanced Database system is ICA ,that regarded as a contribution to a my personal
development. By developing this assignment , I have achieved the below knowledge
areas.
2|Page
Installing Microsoft SQL Server 2008 management studio
successfully in my computer.
Learn about Entity Relationship Diagrams.
Learn about Normalization.
Creating database to the Hotel Room Booking with functional
relationship in database including features for a real world.
Creating Partial ER diagram to understand and depicting of the room
booking database.
Creating tables.
Creating Primary Keys.
Creating foreign keys.
Creating relationship between the tables Creating Constraints &
Triggers.
Creating a stored procedures.
Creating queries for the database to get required details.
Show understanding of SQL programming code such as DDL AND
DML.
Demonstrate advanced SQL server features.
3|Page
5.5.1 Table Customer
Below are the screenshots of the DB HOTEL RESERVE . They will display the
table design , data types of the field ,primary key, Foreign key, as well as
constraints imposed. Each table design screenshot is followed with some
sample data screen show.
4|Page
5|Page
Figure 6.0 DB HotelReserve
inside the object explorer Panel
6|Page
5.5.3. Table Guest
Below will display the design of Table Customer inside the object Explorer
panel, design window and sample data retrieved with a system generation
DML statement.
7|Page
Figure 9.0: Table Guest in Object explorer
8|Page
5.6.6. Table Guest Sample Data
9|Page
7.8. Alter Tables- Adding Column for the
table
Below SQL will add a dummy column for the
table.
10 | P a g e
7.11. Insert Data within a table
11 | P a g e
7.14. Create Constraints
Below SQL will show you a trigger created for the INSERT active of Booking
table.
12 | P a g e
7.16. Create Index
13 | P a g e
Figure
23.0. Create New Project
14 | P a g e
Figure 24.0. Integration Service project
15 | P a g e
Figure 25.0. Create Data Flow Task
16 | P a g e
Figure
Adding Multicast
17 | P a g e
Figure 30.0.
Adding multicast
18 | P a g e
Figure 32.0 New Data Connection Manager
Connecting to simple database and setting to column
19 | P a g e
Figure 34.1. Change the column in table
20 | P a g e
Figure36.0. OLE DB connection manager
21 | P a g e
Figure 37.0. Selecting Server Name
22 | P a g e
Figure 39.0. Run Data flow Tasks
23 | P a g e
Figure 42.0 Select a Data
source
24 | P a g e
Figure 44.0 open
visual Studio
25 | P a g e
This error (and some other errors) cam repeatedly for various restore scenarios! I could not
restore the database from .BAK files; although the backup file was created successfully! Most
online resource I referred didnt work for me either!
26 | P a g e
Figure 45 .0 New Project
27 | P a g e
Figure 46.0 Select ADO.NET Entity Data Model
28 | P a g e
Figure 48.0 Choose Data Connection
29 | P a g e
Figure 49.0 Add Connection
30 | P a g e
Figure 51.0 View a Tables
Reserve Database
31 | P a g e
Figure 54.0 Display a data in Table
Customer
32 | P a g e