Question

In: Computer Science

Complete the following tasks. In each exercise, represent your answer only in DBDL. Do not use...

Complete the following tasks. In each exercise, represent your answer only in DBDL. Do not use diagrams a this point. Submit either a text file or a Word document with your work. Make sure you follow chapter 6's DBDL notation

(****** Just to clarify: this is the first question on Page 220. It says to 'produce the following reports', but what you are asked to do is use DBDL notation to create 5 tables: Guide, Trip, Customer, Reservation and TripGuides
Make sure to list the FK where they belong ******)

  1. Design a database to produce the following reports. Do not use any surrogate keys in your design.
    • For each guide, list the guide number, guide last name, guide first name, address, city, state, postal code, telephone number, and date hired.
    • For each trip, list the trip ID number, the trip name, the location from which the trip starts, the state in which the trip originates, the trip distance, the maximum group size, the type of trip (hiking, biking, or paddling), the season in which the trip occurs, and the guide number, first name, and last name of each guide. A guide may lead many trips and a trip may be led by many differen't guides.
    • For each customer, list the customer number, customer last name, customer first name, address, city, state, postal code, and telephone number.
    • For each reservation, list the trip ID number, the trip date, the number of persons included in the reservation, the price of the trip per person, the total of any additional fees per person, and the customer number, first name, and last name of the customer who made the reservation.

Solutions

Expert Solution


Schema design in DBDL :

Guide [GuideNumber(Primary Key), GuideLastName, GuideFirstName, Address, City , State, PostalCode, TelephoneNumber, DateHired]

Trip [TripIdNumber(Primary Key), TripName, TripStartLocation, TripStartState, TripDistance, MaxGroupSize, TypeOfTrip, SeasonOfTrip, GuideNumber(Foreign Key)]

Customer[ CustomerNumber(Primary Key), CustomerLastName, CustomerFirstName, Address, City, State, PostalCode, TelephoneNumber]

Reservation[TripIdNumber(Primary Key), TripDate, NumOfPeopleInReservation, TripPricePerPerson, AdditionalFeesPerPerson, CustomerNumber(Foreign Key)]


Queries to fetch required data from the above tables :

1) select GuideNumber,GuideLastName,GuideFirstName,Address, City , State, PostalCode, TelephoneNumber, DateHired from Guides where GuideNumber = "123"
2) select TripIdNumber, TripName, TripStartLocation, TripStartState, TripDistance, MaxGroupSize, TypeOfTrip, SeasonOfTrip, GuideNumber,GuideLastName,GuideFirstName from Trip inner join Guide on(Trip.GuideNumber=Guide.GuideNumber)
where TripIdNumber = "123"
3) select CustomerNumber, CustomerLastName, CustomerFirstName, Address, City, State, PostalCode, TelephoneNumber from Customer where CustomerNumber = "123"
4) select TripIdNumber, TripDate, NumOfPeopleInReservation, TripPricePerPerson, AdditionalFeesPerPerson, CustomerNumber , CustomerFirstName, CustomerLastName
from Reservation inner join Customer on (Reservation.CustomerNumber = Customer.CustomerNumber) where TripIdNumber = "123"


Related Solutions

What are the detailed tasks of each of the following traffic areas to complete the transport/traffic...
What are the detailed tasks of each of the following traffic areas to complete the transport/traffic part of the project?? Please provide all the breakdown of the tasks which are required to perform in the following areas to complete the project: I. traffic generation II. traffic distribution III. Traffic simulation III. Mode distribution What are the tasks breakdown of Traffic generation? What are the tasks breakdown of Traffic distribution? What are the tasks breakdown of Mode distribution ? What are...
Complete and balance each of the following equations for combustion reactions. Express your answer as a...
Complete and balance each of the following equations for combustion reactions. Express your answer as a chemical equation. Identify all of the phases in your answer. A. C4H6(g)+O2(g)? B.   C(s)+O2(g)? C. CS2(s)+O2(g)? D.   CH4O(l)+O2(g)?
Please only answer if you're 100% on the answer and can fully complete. Thank you. USE...
Please only answer if you're 100% on the answer and can fully complete. Thank you. USE FIRST-IN, FIRST-OUT COSTING Sulu Company produces its finished product in two processing departments--Assembly and Packaging. The following information is available for the month of July: Assembly Department: The beginning work-in-process inventory was $5,755 ($4,815 direct materials and $940 conversion costs) and consisted of 350 units that were 10% complete as to conversion costs. During July, an additional 4,500 units were started into production. A...
Hypothesis test for correlation. Use the given data to do the following tasks.
  Hypothesis test for correlation. Use the given data to do the following tasks. x y 5 20 6 20 7 15 8 16 9 11 10 11 (a) Calculate the correlation coefficient r.  (use three sig figs)(b) Find the regression line: y=y=  +  xx. (round values to two decimal places)(d) Test the claim that there is correlation and find the p-value:  (State answer to three significant figures, which is different than stating values to three decimal places. For our purposes, stating a value...
For each of the following use your knowledge of bonding theory and complete sentences to fully...
For each of the following use your knowledge of bonding theory and complete sentences to fully explain each fact provided. 1.ch3oh has a higher boiling point than h2co 2. mgcl2 has higher melting point than cacl2 3. mgs has higher melting point than nacl 4. c3h8 has a higher vapor pressure than liquid butane(c4h10) 5. molecular solids usually have lower melting points than ionic solids
Read the situation below and complete the following tasks: Post your own reply to the eight...
Read the situation below and complete the following tasks: Post your own reply to the eight questions = show your work for questions 6 through 8 After working as a head chef for years, Jared decided to open up his own restaurant. Label each item as either a explicit cost or implicit costs (HINT: remember an implicit costs would mean there would have to be an opportunity cost) _________________He gave up his yearly $60,000 salary to open his own restaurant...
In C++, use SML programs to accomplish each of the following tasks: a) Use a sentinel-controlled...
In C++, use SML programs to accomplish each of the following tasks: a) Use a sentinel-controlled loop to read positive numbers and compute and display their sum. Terminate input when a negative number is entered. b) Use a counter-controlled loop to read seven numbers, some positive and some negative, and compute and display their average. c) Read a series of numbers, and determine and display the largest number. The first number read indicates how many numbers should be processed. For...
Use only the information in the following table for the next few questions.  The following statistics represent...
Use only the information in the following table for the next few questions.  The following statistics represent samples of copper wire submitted by two companies for tensile strength testing (psi). Statistic                                                      Company A          Company B Arithmetic Mean                                       500                         600 Median                                                       500                        500 Mode                                                           500                       300 Standard Deviation                                   40                          20 Mean Absolute Deviation                         32                        16 Quartile Deviation                                     25                         14 Range                                                       240                         120 Sample Size                                          100                           80 The middle 95% of the wires from Company A tested between _____ and _____ .  Record ONLY the lower limit as a whole number. The middle 50 percent of the wires of Company A tested...
Type in only your numerical answer to the following problem; do not type any words or...
Type in only your numerical answer to the following problem; do not type any words or letters with your answer. You find 11 coins in an old desk drawer, consisting entirely of nickels, dimes, and quarters, with a face value of $1.15. However, the coins all date from 1889 and are worth much more than their face value. You were able to sell all coins to a coin shop for a total of $36. Suppose you receive $4 for each...
Type in only your numerical answer to the following problem; do not type any words or...
Type in only your numerical answer to the following problem; do not type any words or letters with your answer. The population of Neverland was 2.3 billion, one hundred years ago. Currently the population is 3.2 billion. What will this population be 100 years from now? NOTE: Round to the nearest tenth of a billion.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT