You are on page 1of 7

Higher College of Technology

University of Technology and Applied Sciences (UTAS)


Department of Business Studies
MAKE-UP/RESIT Semester 1- A.Y. 2020/2021

STUDENT NAME

STUDENT ID
Department BUSINESS STUDIES Section 1, 2,3 and 4

Course Name Database for Small Business Course Code BADB2301

Specialization Department Level Diploma II

Date of Exam January 2021 Time

Section No. Maximum Marks Marks Obtained Section No. Maximum Marks Marks Obtained

I 20 I 20
II 10 II 10
III 10 III 10

IV 10 IV 10

TOTAL 50 50

___________________________ ___________________________

1st Marker Signature 2nd Marker Signature

Happy Hotel has planned to create a database to manage its customers and their data. You are required to create a system
using MS Access to store the required information. Save the database as HappyStudentName (e.g. HappySara).
Page 1 of 6
Import the data from excel book namely “Happy Hotel Data” available in e-learning portal to create the following tables.
Ensure that filed types and sizes are realistic and correct. Ensure that data should appear in tables exactly like given
below e.g. Name of Tables, Formatting, Alignment etc. Also download the picture from the e-learning portal.

Section I – Tables (20 Marks)

Customer Details (1Mark)

Emergency
AccountNumber Customer Name Phone Number Emergency Phone Notes
ContactName
100752 Caroline Lomey 30165207 Albert Lomey 30141250  
180204 Randy Whittaker 70363112 Bryan Rattner 70350692  
204795 Juliette Beckins 41094414 Bernard Brodsky 41038522 Allegric to nuts, dairy products
208405 Peter Carney 99058518 Spencer Miles 99075086  

Employees Details (1Mark)

Employee Number Employee Name Title Notes


A24095 Fred Barclay Accounts Associate  
A27049 Harriett Dovecott Accounts Associate  
A28405 Peggy Thompson Accounts Associate  
GM22958 Andrew Laskin General Manager Out of country for 2 months
S70429 Lynda Fore Shift Manager  
T72947 Sheryl Shegger Intern On training for 6 months
Room Details (1Mark)
Room Number Room Type Bed Type Rate Room Status
101 Bedroom Queen OMR 85.950 Booked
102 Bedroom Double OMR 92.500 Available
103 Studio Double OMR 112.500 Booked
104 Bedroom Queen OMR 85.950 Available
105 Bedroom King OMR 98.750 Available
106 Bedroom Queen OMR 85.950 Available
107 Bedroom King OMR 98.750 Available

Occupancy Details (1Mark)

Occupancy Employee Account Date Room Phone


Rate Applied Notes
Number Number Number Occupied Number Charge
1000 A28405 946090 1/7/2012 114 OMR 98.750 OR 3.550  
The room is rented for an
1001 A28405 474065 1/7/2012 110 OMR 450.000
  on-going conference
1002 A24095 204795 1/7/2012 104 OMR 85.950    
1003 A27049 204795 1/8/2012 104 OMR 85.950    
1004 A28405 946090 1/8/2012 114 OMR 98.950 OR 18.860  
1005 A24095 208405 1/9/2012 203 OMR 94.500    
1006 A24095 284085 1/9/2012 106 OMR 85.950    
1007 A24095 294209 1/9/2012 205 OMR 85.950    
The customer is here for a
1008 A27049 208405 1/13/2012 203 OMR 94.500 conference and will occupy
  the room for a week.
1009 A28405 284085 1/13/2012 106 OMR 85.950    
1010 A28405 294209 1/13/2012 205 OMR 85.950    

Payment (1 Mark)
ReceiptNumber EmployeeNumber AccountNumber FirstDayofOccupation LastDayofOccupation TaxRate Notes
Customer
complained
1R1256 A28405 946090 Saturday, January 07, 2012 Wednesday, January 11, 2012 1.50%
about the
room service
1R1257 A24095 204795 Saturday, January 07, 2012 Thursday, January 12, 2012 1.50%  
1R1258 A28405 946090 Saturday, January 07, 2012 Tuesday, January 17, 2012 1.50%  
Liked the
hotel
1R1259 A24095 284085 Sunday, January 08, 2012 Tuesday, January 10, 2012 1.50%
promised to
come back
1R1260 A27049 208405 Sunday, January 08, 2012 Sunday, January 15, 2012 1.50%  

a) Identify the Primary Key & Foreign Key in each table. (2 Marks)

b) Create the relationship between the tables. (2 Marks)

Tables

a) Save Room Details table as Room Status table and change the data of Room Status so that Booked is displayed in
Red color & Available in Green color. (1.5 Marks)

b) Save the Room Details table as Room Name table. Sort the table by Room Type in Descending order. Create the
lookup wizard for Room Type Field. (1.5 Marks)

c) Save Employee Details table as Employee -Final-1 table. Edit the record A28405 in change the name to Daniel Costa.

(1Mark)
d) Save Employee Details table as Employee -Final-2 table. Insert new record in Employee –Final-2 table, as shown
(1 Mark)

Employee Number Employee Name Title Notes


T244795 Fred Wilson Store Manager  Will join on 1/2/2021

e) Save Payment table as Payment -Final-1 table. Change the data type of Last day of Occupation field in Payment’s
table as medium date and ensure Default date of “First Day of Occupation” as today’s date. (2 Marks)

f) Save Payment table as Payment -Final-2 table. Add new field “No of Days” to Calculate how many days each
customer had stayed in hotel. (2 Marks)

g) In customer details table change phone number field to look like 30-16-52-07 (1 Mark)

h) In customer details table, create a new field “Customer Full name” to combine First name and second name. Please
leave appropriate space in between First name and second name. (1 Mark)

NOTE: Use only 4 Main Tables to create Query, Forms & Reports

QUERY (10 Marks)


a) Create a query, only for those customers who occupied the hotel on 8th Jan 2012. The query should include Account
No., Customer Full Name, Emergency phone Number & First Day of Occupation. Save query as Emergency
Query. (3 Marks)

b) Create a query showing – All Customers whose Last Name begins with the letter “W” and who occupies King bed. The
query should show Customer First Name, Last Name Employee Number and Room Type. Save query King Query.
(3 Marks)

c) Create a Payment Query. To Include Customer Full Name, Room Type, Last Day of Occupation & Tax Rate. Sort
query by Last Day of Occupation in Ascending Order. (1 Marks)

d) Create a query only for those rooms which are “Booked”. The query should show Room No, Room Type, Room
Status & Rate. Sort query by Bed Type in descending order. Save query as BookedRoomQuery. (3 Marks)

FORMS (10 Marks)

a) Create a Form with all fields of the Customer Details Table & save the form as Customer Entries. (2 Marks)

b) Make the Phone Number of Each customer in the form, Red & Check is it working? (1 Marks)

c) Insert a Picture (Form Bird Image) in the form in a way that all text is visible & picture should be stretched.
(2 Marks)

d) Add the buttons in the form footer with text Close Form & Add Record. (2 Marks)
e) Add required Navigation buttons in the form footer to navigate all the records (2 Marks)

f) Set the Customer Entries form to appear when you open a database. (1 Marks)

REPORT (10 Marks)

Create a report as follows:

a) Fields to include – Customer Full Name, Employee First Name, Room Type & First Day of Occupation. Make sure
all fields are readable. (3 Marks)

b) Grouping – Room Type (1 Marks)

c) Sorting – Customer Full Name (descending). (1 Marks)

d) Layout – Stepped, Landscape. (1 Marks)

e) Title – Customers Roomwise. Change Title back ground Color Light Green Color and text (Bold & Blue Color),
(2 Marks)

f) Insert your name in report footer –change font color to Orange, Bold, font Size 18 & Underline. (2 Marks)

You might also like