WRITE SQL queries to do following from the given cruise database tables:(AND SHOW OUTPUT SCREENSHOT TO CONFIRM
Question:
WRITE SQL queries to do following from the given cruise database tables:(AND SHOW OUTPUT SCREENSHOT TO CONFIRM CORRECTNESS) mysql)!
Please use Subquery in each of the following scenarios:
1.1 Which ship weighs the least.
1.2 Show the name of the passenger who paid the highest fare (use quantified subquery)
2. Please write 2 different queries for each of the following(do in 2 different ways) using join once and once subquery:
2.1:. List the names of passengers who have been on a cruise that visited New York
2.1 a. use a join
2.1.b: use subquery
2.2 List the names of passengers who have been on a cruise directed by Adams.(same write 2 different queries using:
2.2 a: use join.
2.2 b. use subquery
Data Modeling and Database Design
ISBN: 978-1285085258
2nd edition
Authors: Narayan S. Umanath, Richard W. Scammel