Question

In: Computer Science

Colonial Adventure Tours Case The owner of Colonial Adventure Tours knows that being able to run...

Colonial Adventure Tours Case

  • The owner of Colonial Adventure Tours knows that being able to run queries is one of the most important benefits of using a DBMS. In the following exercises, you will use the data in the Colonial Adventure Tours database shown in Figures 1-15 through 1-19 in Chapter 1. (If you use a computer to complete these exercises, use a copy of the Colonial Adventure Tours database so you will still have the original data when you complete Chapter 3 exercises.) In each step, use QBE to obtain the desired results. You can use the query feature in a DBMS to complete the exercises using a computer, or you can simply write a description of how you would complete the task. Check with your instructor if you are uncertain about which approach to take.
  • Save the file on your computer with your last name in the file name. (Example: case_1-1 _Jones.doc)
  • Click the Choose File button to find and select your saved document.
  1. List the name of each trip that does not start in New Hampshire (NH).
  2. List the name and start location for each trip that has the type Biking.
  3. List the name of each trip that has the type Hiking and that has a distance greater than six miles.
  4. List the name of each trip that has the type Paddling or that is located in Vermont (VT).
  5. How many trips have a type of Hiking or Biking?
  6. List the trip name, type, and maximum group size for all trips that have Susan Kiley as a guide.
  7. List the trip name and state for each trip that occurs during the Summer season. Sort the results by trip name within state.
  8. List the name of each trip that has the type Hiking and that is guided by Rita Boyers.
  9. How many trips originate in each state?
  10. How many reservations include a trip with a price that is greater than $20 but less than $75?
  11. List the reservation ID, customer last name, and the trip name for all reservations where the number of persons included in the reservation is greater than four.
  12. List the trip name, the guide’s first name, and the guide’s last name for all trips that originate in New Hampshire (NH). Sort the results by guide’s last name within trip name.
  13. List the reservation ID, customer number, customer last name, and customer first name for all trips that occur in July 2018.
  14. Colonial Adventure Tours calculates the total price of a trip by adding the trip price plus other fees and multiplying the result by the number of persons included in the reservation. List the reservation ID, trip name, customer’s last name, customer’s first name, and total cost for all trips where the number of persons is greater than four.
  15. Create a new table named Hiking that includes all columns in the Reservation table where the trip type is Hiking.
  16. Use an update query to change the OtherFees value in the Hiking table to $5.00 for all records on which the OtherFees value is $0.00.
  17. Use a delete query to delete all trips in the Hiking table where the trip date is 6/12/2018.
  18. One of the reservations agents at Colonial Adventure Tours created the query shown in Figure 2-49 to list each trip name and the last name and first name of each corresponding guide. The query results included 410 records, and he knows that this result is incorrect. Why did he get so many records? What should he change in the query design to get the correct query results?

Solutions

Expert Solution

select name from TRIP where trip NOT LIKE 'New Hamshire%'


select name ,startLocation from trip where type ='Biking'


select name from trip where type ='Hiking' and distance > 6


select name from trip where type ='Padding' OR startLocation = 'Vermont (VT)'


select count(*) from trip where type in ('Hiking','Biking')



select t.tripName, t.type, MAX(groupSize)
From trip t, guide g
where g.guide ='Susan Kiley'
and g.tripName = t.name;
group by t.tripName, t.type;



select name , startLocation from trip
order by startLocation, name;

select name from trip t, guide g
where t.type ='Hiking'
and g.guide = 'Rita Boyers'
and g.tripName = t.name;


select startLocation,count(*) from trip
group by startLocation



select count(*) from trip
where price > 20 and price < 75




select r.reservationID, t.lastName, t.name
from Reservation, trip
where (select (count*) from Reservation group by name) > 4

Let me know if you have any doubts or if you need anything to change. 

If you are satisfied with the solution, please leave a +ve feedback : ) Let me know for any help with any other questions.

Thank You!
===========================================================================

Related Solutions

Instructions: Complete the following queries using the Colonial Adventure Tours database. You will find the description...
Instructions: Complete the following queries using the Colonial Adventure Tours database. You will find the description including data of this database in page 16 to page 20 in Chapter 1 in your Concepts of Database Management textbook. For each following question, create a query using the Query Design option in Access. Make sure that you save and name each query in the following manner: Query1, Query2......Query14. Query Questions: Queries: 1. List the name of each trip that does not start...
Adventure Expeditions offers guided back-country hiking tours. Adventure Expeditions provides a guide and all necessary food...
Adventure Expeditions offers guided back-country hiking tours. Adventure Expeditions provides a guide and all necessary food and equipment at a fee of $50 per person per day. Adventure Expeditions currently provides an average of 600 guide-days per month in June, July, August, and September. Based on available equipment and staff, maximum capacity is 800 guide-days per month. Monthly variable and fixed operating costs. Variable costs per guide-day Fixed costs per month Food $ 5 Equipment rental $5,000 Guide Salary 25...
Adventure Expeditions offers guided back-country hiking tours. Adventure Expeditions provides a guide and all necessary food...
Adventure Expeditions offers guided back-country hiking tours. Adventure Expeditions provides a guide and all necessary food and equipment at a fee of $50 per person per day. Adventure Expeditions currently provides an average of 600 guide-days per month in June, July, August, and September. Based on available equipment and staff, maximum capacity is 800 guide-days per month. Monthly variable and fixed operating costs. Variable costs per guide-day Fixed costs per month Food $ 5 Equipment rental $5,000 Guide Salary 25...
Adventure Expeditions offers guided back-country hiking tours. Adventure Expeditions provides a guide and all necessary food...
Adventure Expeditions offers guided back-country hiking tours. Adventure Expeditions provides a guide and all necessary food and equipment at a fee of $50 per person per day. Adventure Expeditions currently provides an average of 600 guide-days per month in June, July, August, and September. Based on available equipment and staff, maximum capacity is 800 guide-days per month. Monthly variable and fixed operating costs. Variable costs per guide-day Fixed costs per month Food $ 5 Equipment rental $5,000 Guide Salary 25...
John likes to run and plans to run a marathon on Sunday. He knows that his...
John likes to run and plans to run a marathon on Sunday. He knows that his friend Nigel will call him and invite him to go for a beer on Saturday night. John enjoys beer but knows if he takes a beer on Saturday he will not be able to perform so well in the marathon on Sunday. Suppose John would enjoy a utility of 5 on Saturday if he takes a beer, and 1 if he stays at home....
4. From past experience, the owner of a restaurant knows that, on average, 5% of the...
4. From past experience, the owner of a restaurant knows that, on average, 5% of the groups that make reservations never show, and 7% of the groups that make reservations show up late (the other 88% percent show up on time). a) How many reservations can the owner accept and still be at least 80% sure that all parties that make a reservation will show? b) How many reservations can the owner accept and still be at least 90% sure...
a conference room holds meetings. the owner knows that the duration of these meetings is uniformly...
a conference room holds meetings. the owner knows that the duration of these meetings is uniformly distributed from 30-90 mins. a) what is the liklihood that a meeting will last between 60 and 80 mintues? b)what is the standard deviation of the duration of the meetings? c) a meeting has been scheduled in a room at 3pm. when should the next meeting be scheduled so that there is no more than a 10% chance that the participants for the second...
Is it important for a business owner to be able to read and understand their balance...
Is it important for a business owner to be able to read and understand their balance sheet, income statements and cash flow statement? Explain your answer using the bakery example business from question 1.
A telemarketer knows that, on average, he is able to make three sales in a 45-minute...
A telemarketer knows that, on average, he is able to make three sales in a 45-minute period. Suppose the number of sales he can make in a given time period is Poisson distributed. a) What is the probability that he makes two sales in a 30 -minute period? b )What is the probability that he makes at least two sales in a 30-minute period? c) What is the probability that he makes only one sale in an hour-long period? Please...
Westerly Woolens is a growing sole proprietorship that is considering going public. The owner knows that...
Westerly Woolens is a growing sole proprietorship that is considering going public. The owner knows that she will have to establish a board of directors, but she is confused by such acronyms as SEC and PCAOB. Additionally, she does not understand the difference between internal audit and external audit. Prepare a memo to the owner of Westerly Woolens describing the concept of corporate governance and the roles of the following: board of directors, CEO, audit committee, PCAOB, external auditor, and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT