Design a query tolist all rooms

Assignment Help Management Information Sys
Reference no: EM13330106

A small, independently runhotel needs to design a portion of a database that will contain information on customers, rooms available and which customershave been booked into rooms. You have been asked to assist them with creating a relational database structure for organizing this information.

The main things that the hotel wants to keep track of in this database are their Customers, along with CustomerID, name, address, phone number and email. The Rooms that are available including the Room number, Number of beds,and the cost of the room, and room description (suite, basic, executive, mountain view, etc).  They also need to know which customershavebeen booked into which rooms and if those rooms have been paid for or not, this information will be stored in the REGISTRATION table. A simple Entity Relationship Diagram is shown below:

878_Design a query tolist all rooms.png

You need to do the following:

Part I

1. Create the tables using the table names indicated above, also include fields, data types, and Primary Keys.  The CustomerID and RoomNo fields in the REGISTRATION table should be Look Up fields. DO NOT put the data in before you have linked the tables (see #2 below).The data types for PricePerNight will be Currency, the data types for CheckInDate will be Date/Time, the data type for the data type for NumNights will be number, Paid will be Yes/No, all others will be short text.

2. Create the relationships between the tables using the LookUp Wizard, these should be in the form of 1-M relationships and will link the PKs and FKs, remember you need to Enforce Referential Integrity to do this.The field CustomerID in the REGISTRATION table will be looked-Up from the CustomerID in the CUSTOMER table. The field RoomNo in the REGISTRATION table will be looked-Up from the RoomNoin the ROOMS table.

3. Create a form for data entry for each of the tables

4. Populate the database using the data provided below, the CUSTOMER and ROOMS tables need to be populated before the REGISTRATION table. You MUST add yourself as a customerand register for a room.

Part II

Create and execute the following queries:

1. Design a query tolist all rooms costing over $100.00, format the dollar amount field to have a '$' sign, label the query RoomsOver100.

2. Design a query to list the total cost of room(s) for each customer, in the query result you will have one row for each customer containing the total amount for that customer, this will include everything they owe and/or have paid, label the query TotRoomAmtPerCust.

3. Design a query to list the total amount owed for all rooms (rooms booked but not yet paid for), there should be only one total amount, format the dollar amount field to have a '$' sign, label the query TotOwedRooms.

Part III

1. Create a report that groups the bookings by room. Include the room number, description, Name and address of all customers that have stayed in that room under the room information.  Label the reportRoomBookingList, center the title. Save as Room Booking List.

Data for the Tables

Customer Information

All fields should be of type TEXT except the CustomerID which will be type AutoNumber

CustomerID

CustName

Address

City

ST

Zip

Telephone

 

Email

1000

Sophie Beranek

145 Oak Ave.

Wilmington

NM

19808

302-475-4477

[email protected]

1001

Justin Taylor

1625 Brook St.

Costa Mesa

CO

92688

714-336-4785

[email protected]

1002

Brad Pitt

9661 King Pl.

Santa Fe

NM

01013

413-572-8292

[email protected]

1003

Jory Red

346 Magee Ave.

Fort Collins

CO

19111

215-780-3953

[email protected]

1004

Adele Adele

419 Basic st

Denver

CO

80920

303-780-4491

[email protected]

1005

Carly Jepson

1884 Unitah

Colorado Springs

CO

80819

719-450-3129

[email protected]

1006

Regina Spektor

776 S. 5th

Castle Rock

CO

82114

303-269-4444

[email protected]

1007

Chris Pine

1408 Creek st

Albuquerque

NM

80808

520-419-2323

[email protected]

Room Information

All fields should be of type TEXT except PricePerNight which will be type Currency.

RoomNo

RoomDescrip

NumBeds

PricePerNight

101

Basic with microwave

1

$85.00

102

Deluxe

2

$100.00

201

Basic

1

$80.00

202

Basic with microwave

1

$85.00

206

Executive, Mountain View

1

$180.00

207

Basic with microwave

2

$85.00

301

Deluxe

1

$100.00

302

One Bedroom suite

1

$120.00

303

Two Bedroom suite, Mountain View

2

$150.00

304

One Bedroom suite, Mountain View

1

$120.00

305

Two Bedroom suite, Mountain View

2

$180.00

Registration Information

RoomRegID will be type AutoNumber, CustomerID will be type Number, RoomNo will be type text CheckIndate will be type Time/Date, NumberNights will be type Number and Paid? will be type Yes/No.


RoomRegID

CustomerID

RoomNo

CheckInDate

NumerNights

Paid?

 

100

1000

101

5/1/2013

3

N

 

101

1001

201

11/22/2012

8

Y

 

102

1001

102

12/23/2012

3

Y

 

103

1002

202

1/30/2013

4

Y

 

104

1003

301

3/5/2013

2

N

 

105

1004

206

12/1/2012

2

Y

 

106

1004

303

4/3/2013

2

Y

 

107

1005

305

2/26/2013

2

N

 

108

1006

201

1/13/2013

2

Y

 

109

1007

202

3/14/2013

1

N

Customers and rooms - this is the list so far of customers and the rooms they are registered in. Be sure to add yourself as a customerin the executive suite for 2 nights.

Reference no: EM13330106

Questions Cloud

Find the magnitude of the force between the two blocks : Two blocks are in contact on a frictionless table. A horizontal force F is applied to m1. If m1 = 1.66 kg, m2 = 3.72 kg, and F = 6.25 N, find the magnitude of the force between the two blocks
Estimate the induced dipole moment of an oxygen atom : The polarizability of large atoms can be estimated by using the formula for the polarizability of a metal sphere, \(\alpha = 4\pi\epsilon a^{3}\), Estimate the induced dipole moment of an oxygen atom
Delta e system is positive and delta e total is negative d : If a system is warmed by its surrounding and the system compresses its surroundings then: A. Delta E system is negative B. Delta E system is positive C. Delta E total is negative D. Delta E total is positive
Calculate the number of radians from rest : A disk rotates about its central axis starting from rest and accelerates with constant angular acceleration. find the number of radians from rest until the time the disk reaches the 5.5 rad/s angular speed
Design a query tolist all rooms : Design a query tolist all rooms costing over $100.00, format the dollar amount field to have a '$' sign, label the query.
Explain the ph of a solution made by adding nh4cl : What is the pH of a solution made by adding 11.0 grams of NH4Cl to 550 mL of 0.205 M NaOH. (Assume no change in volume takes place.)
Hinder task accomplishment : You now know that as a leader, all projects, goals and assignments require the appropriate task to accomplish the desired outcomes. They also require the appropriate influence and values to accomplish the outcomes in an ethical manner.
What is the required wind speed near the sheet : Continuation of Problem 8 and Problem 37. Another explanation for the sliding stones of Racetrack Playa in Death Valley, what is the required wind speed near the sheet
What force does the rope exert on the block : One end of a rope is tied to a block of mass 3.10kg and you pull straight up on the other end of the rope to lift the block up off the ground with an acceleration of 3.80m/s^2

Reviews

Write a Review

Management Information Sys Questions & Answers

  Explain the software architecture

Importance of Strong Software Architecture - What is software architecture and What role do software architects play in the IT industry?

  Can technology improve customer satisfaction

Show how frequent fan programs and similar activities made possible by technology can improve customer satisfaction and lead to long-term relationship building.

  Discuss information systems-insurance

Information Systems-Insurance - Discuss with your classmates your thoughts about why these users might be getting such poor response.

  Prompt system development projects

System development projects - What situations might prompt system development projects?

  Discuss a good way to make strategic information available

Discuss a good way to make strategic information available to the internal stakeholder groups to help focus their efforts

  Write a report that addresses all of the above sections

Your task is to write a report that critically analyses the adoption of SAP systems in business organisations and discuss accounting challenges and benefits in an SAP environment.

  Determine what his break even point

John owns a shave ice stand - Help Him to determine what his break even point is.

  Prepare a short survey based on a topic

Using a Microsoft Word document, create a short survey based on a topic related to careers in general, careers in IT, or another occupational topic.

  Supporting mobile health clinics

Analyze Case Study : Supporting Mobile Health Clinics: The Children's Health Fund of New York City and Examine the case study, and develop the conclusions, recommendations, and implications.

  Show the benefits of global value chain management

Global value chain management - describe how value differs for each of these stakeholders. Please cite the references.

  Describe the cameron balloons simulation

This solution involves using a project simulator. The simulation covers the operations of the Cameron balloon factory. The solution explains cost analysis and the student will learn how to analyze costs and spreadsheets in managing the factory.

  Explain hierarchy processes and project control systems

Project Management: Alternatives, Hierarchy Processes and Project Control Systems and Technologies - example of each type of technology and explain why you feel it fits into the category.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd