c Find all possible distinct eid, aid pairs of pilots, aircraft where the aircra
ID: 3867039 • Letter: C
Question
c Find all possible distinct eid, aid pairs of pilots, aircraft where the aircraft are those owned by the airline with the exception of those on the specialized list. (This query will produce 132 rows of pairs) d) Find all possible distinct eid, aid pairs of pilots and aircraft where the aircraft are those owned by the airline with the exception of those on the specialized list, and the pairs are not among the eid, aid pairs in Certified. (Hint: This is the all possible-actual step) (This query should produce 87 rows of pairs)Explanation / Answer
Query
1. SELECT Aircraft.aid,aname,Employees.eid,ename FROM Aircraft,Employees,Certified WHERE Aircraft.aid=Certified.aid AND Employees.eid=Certified.eid
2. SELECT Aircraft.aid,aname,Employees.eid,ename FROM Aircraft,Employees WHERE eid AND aid NOT IN (SELECT eid,aid FROM Certified)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.