Professional Documents
Culture Documents
Dad - New
Dad - New
Assessment Title & No’s : Database solution for Naomi Villa (No 1 of 1)
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 way. I further understand what it means to copy
another’s work.
Naomi Villa is a five star hotel situated in the southern border of Sri Lanka, awarded as the best of its
category by the president, several times.
Naomi Villa has 5 categories of rooms namely Standard, Superior, Deluxe, Suits and Penthouses. All five
categories are offered in either of two types “Garden View” or “Ocean View”. Standard, Superior and
Deluxe categories can be ordered in any of three bed sizes, known as “King” best suited for couples,
“Queen” suited for Singles, or “Twins” which is two separate single beds for travel partners. Suits have
“King” and “Twin Set” size beds where Penthouses can only be ordered with “King” size beds. Room bed
configuration and the view are native to the room and cannot be changed as desired. The five different
room categories are priced at a variation, but within a category, the price remains the same regardless
of the bed type and size or view.
Naomi Villa has several types of Clients, collectively known as “Guests”. A Guest can be either “Direct”
who booked the hotel directly, “repeat” who has visited another hotel before or “Agent” who booked
through third party travel agents. Different client types are offered rooms at different prices.
Customers willing to make a stay in the hotel must first make an inquiry, inquiries are recorded for
further follow up and promotional purposes. After the inquiry, customer can make an advance payment,
which makes the inquiry a confirmed booking. While making a booking, the customer has to specify the
preferred room type, view, bed size, stay period, etc.
Clients are also free to select one of any of the three meal plans during reservation. The meal plans
include “BB” where breakfast is included in the room bill, “HB” where breakfast and Dinner is included
and “FB” where all three meals are included.
Upon arrival, the Guest card is filled, and filed for the duration of stay, and archived after the departure
of the client. If the client visits the hotel again, the information in the archived guest card is used to
create a reservation for the new stay. Guest card collects the Customer Name(s), Birthday(s), ID
Number(s), Address(s) and Phone Number(s). After the registration, the customer is escorted into
his/her room.
Naomi villa has a selection of restaurants, bars, sports, tour and healthcare treatment facilities which
the guests can enjoy during his/her stay. Each facility requires a prior booking, for example, a customer
can book a romantic dinner for two, at the special roof top restaurant named “temptations” and request
for jasmine scented candles. Charges for such utilization are credited to the customer’s “room account”
which the Guest can pay during his “Check-out” either by cash or credit card.
After the check-out, guest records including his personal details, preference and information related to
his stay are archived along with the Guest card, which can be called upon to verify a re-visiting
customer.
1.1. Prepare a power point presentation to critically compare and contrast different data
models and provide suitable justifications for why relational model best fits the scenario
(LO.1.1)
1.2. Discuss the benefits and limitations of different database technologies such as distributed
database, data warehouse, etc. (LO.1.2) (M2.1)(M 2.3)
1.3. Analyze different approaches to database design(LO 1.3)
Task 2
2.1. Draw an ER diagram for the above scenario. Make sure to indicate primary keys, cardinality
constraints, weak entities (if any), and participation constraints.
2.2. List any assumptions and extra constraints which cannot be captured by the ER diagram. Commented [A1]: HAVE TO ASK
2.3. For each entity set and relationship, write a short description in plain English of what it
represents or models.
2.4. Translate the ER diagram in Relational Schemas. (LO 2.1)
2.5. Translate the ER diagram into relational database tables (give the SQL DDL statements). (LO
2.2)
2.6. Provide evidence of the use of a suitable IDE to create a simple interface to insert, update
and delete data in the database (LO 2.3)
Task 3
3.1. Explain and provide evidence on the benefits gained when making use of DML (LO 3.1) (M
1.2)
3.2. After creating the tables, execute the following SQL queries on your database.
For each of the problems show:
• Your SQL query
• The result you obtained (LO 3.2)
a. Display the number of “Superior” rooms booked, facing “Garden” with “Twin Beds”.
b. Filter the customers who have made prior booking for special facilities.
c. Delete the records of customers who have booked ‘Deluxe’ rooms.
d. Write an update query to update a particular record in the database.
3.3. How meaningful data has been extracted through the use of query tools. Explain with
examples. (LO 3.3)
3.4. Provide suitable test cases and a test plan to test the database.(LO 4.1)(LO 4.2)
3.5. Demonstrate how MS SQL effectively supporting to the designer when they implement the
database through the documentation. (User screen shots) (LO 4.3)
Comments:
1.2 critically discuss the benefits and limitations of different database Task 1.2
technologies
1.3 analyze different approaches to database design Task 1.3
2.2 build a relational database system based on a prepared design Task 2.5
2.3 apply a range of database tools and techniques to enhance the user Task 2.6
interface
LO3 -Be able to use manipulation and querying tools
3.1 explain the benefits of using manipulation and query tools in a relational Task 3.1
database system
3.2 implement a query language into the relational database system Task 3.2
3.3 critically evaluate how meaningful data has been Task 3.3
extracted through the use of query tools
4.2 create documentation to support the implementation and testing of a Task 3.4
relational database system
4.3 create user documentation for a developed relational database system Task 3.5
4.4 explain how verification and validation has been addressed Task 3.6
4.5 explain how control mechanisms have been used. Task 3.7
M1.2 complex problems with more than one variable have been Use join queries to bring summarized
explored records from two different tables.
M2 Select / design appropriate methods / techniques
M2.1relevant theories and techniques have been applied Proper use of Harvard referencing.
M2.3 a range of sources of information has been used
D1.3 Self-criticism of approach has taken place Good conclusion with suggestions
for further improvement
D2 Take responsibility for managing and organising activities Gantt chart must be provided at the
appendix section and submit the
D2.3 Activities have been managed work on time.
D3 Demonstrate convergent / lateral / creative thinking Evidences on Use of triggers, views
and stored procedure.
D3.5 Innovation and creative thoughts have been applied
Whether the queries are correct,
the number of tables they
reference, and the running time.