Question

In: Computer Science

Given the following tables: Aircraft (ano, amodel, mfgYr) Fleet (fno, src, dest, ano, pno) Pilot (pno,pname,gender)....

Given the following tables: Aircraft (ano, amodel, mfgYr) Fleet (fno, src, dest, ano, pno) Pilot (pno,pname,gender). Write Relational Algebra Query for the following. (i) Find those female pnames who has not taken a fleet dest of ‘Alabama’ but taken a fleet src to ‘Bahama’ (ii) Retrieve the fno, amodel of the aircraft manufactured in 2015 that the male pilot has had a flight on

Solutions

Expert Solution

(i) Result_1 will contain the subset of the fleet having src equal to Bahama (src = 'Bahama') and dest not equal to Alabama (dest <> 'Alabama').

Result_2 will contain the subset of the table pilot such that their gender is female.

Finally, we will join the Result_1 and Result_2 such that pno of the Result_1 and Result_2 should be same. And, then we will extract the column pname.

(ii). Result_1 will contain the subset of the Aircraft table having mfgYr = 2015.

Result_2 will contain the subset of Pilot table such that the gender should be only male.

Result_3 will be equijoin of Result_2 and Fleet with condition that pno should be same.

Finally, we will join the Result_3 with Result_1 with condition that ano of both the Result_1 and Result_3 should be same. And, then we will extract the column fno and model into Result.


Related Solutions

Given aircraft (ano ,amodel, mfgYr) fleet ( fno, src ,dest, ano ,pno ) pilot (pno, pname,...
Given aircraft (ano ,amodel, mfgYr) fleet ( fno, src ,dest, ano ,pno ) pilot (pno, pname, gender) write relational alzebra query for the following 1. find those pnames who havent taken a fleet 2. retreive the fno ,amodel that the pilot has named 'abc' flew
Airlines are comprised of many types of aircraft within their fleet to accomplish the route structure...
Airlines are comprised of many types of aircraft within their fleet to accomplish the route structure for the airline. Discuss the core components of planning for airlines from a fleet management perspective. You should examine how the airline’s fleet can impact route structure, the customer experience, safety, and the planning process. Include an example on how this can impact your mock airline’s passenger demand patterns from a pleasure vs. business travel perspective.
Should Emirates expand it's fleet to a mix of aircraft (aka United Airlines), or should they...
Should Emirates expand it's fleet to a mix of aircraft (aka United Airlines), or should they enter a global code-share alliance? Explain your reasoning.
Gromit plc operates a fleet of commercial aircraft. On 21 February 20X1 the government passed a...
Gromit plc operates a fleet of commercial aircraft. On 21 February 20X1 the government passed a new law requiring the mandatory upgrade of the electronic security systems on board all commercial aircraft. The deadline to complete the upgrade works was 31 September 20X1 and failure to meet the deadline would be punishable with a penalty of £1 million. Gromit plc drafted an upgrade plan and estimated total upgrade costs to be £2 million, however by 31 December 20X1 (Gromit plc’s...
The Airline industry provides passenger and freight transport services through its fleet of aircraft flying to...
The Airline industry provides passenger and freight transport services through its fleet of aircraft flying to domestic and international destinations. The industry is part of the air travel value chain which includes suppliers as well as distributors of the main service provider, the airlines' company. The chain is set up to cater to the needs of the ultimate customers in the process, air travellers. Qantas Airlines is the designated national carrier of Australia. It operates both domestically and internationally. The...
Given the following relations: PARTS(Pno, Pname, Qoh, Price, Olevel) CUSTOMERS(Cno, Cname, Street, Zip, Phone) EMPLOYEES(Eno, Ename,...
Given the following relations: PARTS(Pno, Pname, Qoh, Price, Olevel) CUSTOMERS(Cno, Cname, Street, Zip, Phone) EMPLOYEES(Eno, Ename, Zip, Hdate) ZIP_CODES(Zip, City, State) ORDERS(Ono, Cno, Eno, Received, Shipped) ODETAILS(Ono, Pno, Qty) Where Qoh stands for quantity on hand and Olevel stands for (re)order Level. The P, C, E and O single letter prefixes for attributes refer to the parts, customers, employees and orders relations, respectively. a. Retrieve the names of customers who have ordered parts costing less than $150.00. b. Retrieve the...
Given the following information, is the grade dependent on gender? Test at the 0.05 level. State...
Given the following information, is the grade dependent on gender? Test at the 0.05 level. State the hypotheses and identify the claim, find the critical value(s), compute the test value, make the decision, summarize the results. A B C D or lower Males 8 17 25 10 Females 12 10 21 7
Given the following contingency table showing dog preference and gender, find the following probabilities if selecting...
Given the following contingency table showing dog preference and gender, find the following probabilities if selecting a person at random. Round answers to 4th decimal place, i.e., .XXXX. Do not put as a percent. Beagle Labrador Total Male 350 425 775 Female 542 824 1366 Total 892 1249 2141 a) Given that the person is male, what is the probability they prefer a beagle? b) What is the probability of being female or preferring a Labrador? c) What is the...
Consider the following relational model for a basketball league: • Player (PlayerID, PName, Position, TeamID) •...
Consider the following relational model for a basketball league: • Player (PlayerID, PName, Position, TeamID) • Team (TeamID, TeamName, Venue) • Game (GameNo, Date, Time, HomeTeamID, AwayTeamID) • Record (GameNo, PlayerID, Points, Rebounds, Assists) In this basketball league, each team has a unique name and each player plays for only one team. One team has at least 10 players. Two teams (home team versus away team) participate in each game at home team’s venue. Each team meets all other teams...
1) What length of runway is required for a Boeing a B-727-000 aircraft given the following...
1) What length of runway is required for a Boeing a B-727-000 aircraft given the following design conditions? Normal maximum temperature 75°F ˜ 24°C Airport elevation                                      4000 ft (1219 m) Take-off weight                                        200,000 lb (99,873 kg) Maximum landing weight                        175,000 lb Max. haul distance                                   1500 mile Effective runway gradient                       0.85 percent
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT