Professional Documents
Culture Documents
List the names (astroname) and number of missions flown of all astronauts who have flown 7
or more Shuttle missions. Order by astroname. Hint: the query requires
“NASA2_Astronaut NATURAL JOIN NASA2_Assigned”. With the given data, the
result of the (correct) query will be:
List the Commander and Pilot (astrono) of all Shuttle missions with mission numbers …
LIKE 'STS-2%'
With the given data, the result of the (correct) query will be:
Answer 2:
A simple sub-query (i.e. a sub-query that is not correlated).
Note: Instead of :
… days = (SELECT max(days)
students may use: … days >= ALL (select days
Answer 3:
A join requiring the cross product notation (i.e. cannot be done with “NATURAL JOIN”). It
may be a self-join, or involve 2 or more tables.