1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dusya [7]
3 years ago
9

Colonial Adventure Tours calculates the total price of a trip by adding the trip price plus other fees and multiplying the resul

t by the number of persons included in the reservation. List the reservation ID, trip name, customer’s last name, and total cost for all reservations where the number of persons is greater than four. Use the column name TotalCost for the calculated field.
Engineering
1 answer:
Vilka [71]3 years ago
3 0

Answer:

The following query is used to display TripName. Reservationld, FirstName. LastName and TotalCost of trip by adding the trip price plus other fees and multiplying the result by the number of persons which have number of persons >4.

Query:

SELECT ReservationlD, Trip.TripName. Customer.LastName. Customer.FirstName. (TripPrice+OtherFees) 'NumPersons as TotalCost FROM Reservation, Trip, Customer WHERE NumPersons>4 AND Reservation.TriplD=Trip.TriplD AND

Customer. CustomerNum=Reservation.CustomerNum:

Explanation:

  • Select clause is used to retrieve data from specified database table or relation and returns the data in the form of table.
  • ReservationID. Trip.TripName. Customer.LastName. Customer.FirstName are the column name of table.
  • (TripPrice+OtherFees) 'NumPersons will calculate the total cost of the Trip and stored it into TotalCost column.
  • As clause is used to give new name TotalCost to resultant column.
  • FROM clause specifies one or more table from where records to be retrieved. o Reservation. Trip and Customer are the table name.
  • WHERE clause is used in SQL query to retrieve only those records that satisfy the specified condition

You might be interested in
Chọn dữ liệu phù hợp và biểu diễn chúng dưới dạng biểu đồ, từ đó cho biết 3 yếu tố
frutty [35]

Answer:

Please explain it in English so that i can help you or you need someone who can speak Vietnam help you

5 0
2 years ago
What is the volume of the rectangular prism shown.
Likurg_2 [28]
It would be 72cm bc u need to add up all the line in the back to
7 0
3 years ago
What is flow energy? Do fluids at rest possess any flow energy?
anzhelika [568]

Answer:

Flow energy is defined as, flow energy is the energy needed to push fluids into control volume and it is the amount of work done required to push the entire fluid. It is also known as flow work. Flow energy is not the fundamental quantities like potential and kinetic energy.

Fluid at state of rest do not possess any flow energy. It is mostly converted into internal energy as, rising in the fluid temperature.

8 0
2 years ago
Which option identifies the type of device the engineer will develop in the following scenario?
Stells [14]
It would be actuator
4 0
2 years ago
Read 2 more answers
What unit of measurment would be used to measure current?
Alex_Xolod [135]

Answer:

The S. I unit of current is Amphere

5 0
3 years ago
Other questions:
  • When a group of firms chooses to work together to turn a non-monopoly market into a monopoly market by securing formal agreement
    8·1 answer
  • A simple ideal Rankine cycle with water as the working fluid operates between the pressure limits of 4 MPa in the boiler and 25
    14·2 answers
  • Heat is applied to a rigid tank containing water initially at 200C, with a quality of 0.25, until the pressure reaches 8 MPa. De
    8·1 answer
  • a digital multimeter is set to read dc volts on the 4 volt scale the meter leads are connected to a 12 volt battery what will th
    14·2 answers
  • Which happens when a wave passes through an opening
    12·2 answers
  • A magnesium oxide component must not fail when a tensile stress of 14 MPa is applied. Determine the maximum allowable surface cr
    8·1 answer
  • What are the main causes of injuries when using forklifts?
    5·1 answer
  • (I really need help ASAP please!! this is for science her is the problem)
    5·2 answers
  • ¿Por qué la lógica de proposiciones es conocida también como lógica de las proposiciones sin analizar?
    11·1 answer
  • I just wanted to say thanks you to Brainly. This website is a huge help!
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!