Question: Please help me with this question! I just need the one that wrong 5. With the cruise company tables (Appendix I), write SQL queries for
Please help me with this question! I just need the one that wrong

5. With the cruise company tables (Appendix I), write SQL queries for the following scenarios. (25pts) 5.1 List the passenger number(s) of passenger(s) who have been on two different cruises. SELECT PASSENGER. PASSENGERNUM, COUNT(*) FROM PASSENGER, VOYAGE WHERE PASSENGER. PASSENGERNUM = VOYAGE.PASSENGEPN HAVING COUNT ()>=2 2 5.2 List the names of passengers who paid more than 50 on a voyage that visited Canada. SELECT PASSENGER. PASSENGERNAME FROM PASSENGER WHERE PASSENGER.PASSENGERNUM IN (SELECT VOYAGE. PASSENGERNUM FROM VOYAGE WHERE FARE >50 AND VOYAGE.CRUISENUM= (SELECT NISIT.CRUISENUM FROM VISIT WHERE VISIT. COUNTRY = 'CAngda') )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
