Question: To validate that the seat pricing system is balanced between many factors, the testing teams needs an analysis of the variations in pricing for a
To validate that the seat pricing system is balanced between many factors, the testing teams needs an analysis of the variations in pricing for a given passenger. In this case Jon Cooley will be the selected passenger PassID# The results need to show the FlightID, along with the assigned seat price was and how it compares to the passenger's overall average seat price. In other words, the average is based on all of Jon's flights, not all passengers.
Once the average is determined the difference should be displayed for quick lookup and comparison.
Include fields shown in the example below
Use a SubQuery to first calculate the average seat price, AvgSeatPrice, for Jon. Then integrate that into the primary query to produce the final results.
You will need the PassID and AvgSeatPrice in the subquery to properly join the results of the subquery into the primary query.
Sort by FlightID
Label the query as Query
Example results of first rows:
tableFirstNameLastName,FlightID,SeatPrice,AvgSeatPrice,DifferenceJonCooley,JonCooley,JonCoolev,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
