Beruflich Dokumente
Kultur Dokumente
:
:
Centre No
Batch:
: Mr. Nisala B
D3
Internal Examiner (IE) : Miss. Shahana
Date Reviewed
: Date of IE
Date Issued :
Date Due
Page 1 of 11
Page 2 of 11
Case study
Naomi Beach Villa
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 customers room
account which the Guest can pay during his Check-out either by cash or credit
card.
Page 3 of 11
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.
Task 1
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.
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)
Page 4 of 11
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)
3.6. Explain how verification and validation are addressed in your database
using stored procedures.(LO 4.4)
3.7. Discuss the security policies relevant to any database management
system.(LO4.5)
Page 5 of 11
Observation Sheet
Activ
ity
No
1
Activity
Learning
Outcome
(LO)
LO4.1
Data manipulations
LO4.1
(Update/Delete)
Implement user privileges
LO4.5
D3.5
LO 4.4
LO4.2
Dat
e
Feedback
(Pass/ Redo)
Comments:
Assessor Name
:.
Assessor Signature
:.
Page 6 of 11
Possible
evidence
LO1- Understand data models and database technologies
1.1 critically compare different data models and schemas
Task 1.1
Outcomes/Criteria for PASS
Page
Feedback
Task 1.2
Task 1.3
Task 2.1
2.4
Task 2.5
Task 3.1
Task 3.2
Task 3.3
Task 2.6
Page 7 of 11
Task 3.4
Task 3.4
Task 3.5
Task 3.6
Task 3.7
Possible evidence
Feedback
summarized
records
from
Documentation is well
structured adhering to the
formatting guidelines with
Page 8 of 11
M3.3
non-overlapping facts.
Data provided are accurate,
reliable and consistent
Possible evidence
Report: shown in the selfreflection section
D1.3
D1.4
D2
D2.3
D3
D3.5
Feedback
Gantt
chart
must
be
provided at the appendix
section and submit the work
on time.
Evidences
on
Use
of
triggers, views and stored
procedure.
Whether the queries are
correct, the number of
tables they reference, and
the running time.
Page 9 of 11
Strengths:
Weaknesses:
Assessor:
Signature:
Date: ____/____/______
Page 10 of 11
Internal Verifier:
____/____/______
Signature:
Date:
Page 11 of 11