1)
select oper_nm,cruise_nm,start_dt,tot_seats
from OPERATOR inner join CRUISE on OPERATOR.oper_cd=CRUISE.oper_cd inner join cruise_book on CRUISE.cruise_cd=cruise_book.cruise_cd
where OPERATOR.oper_nm='Dream Tours'
2)
select customer.cust_nm,CRUISE.cruise_nm,cruise_book.seats_avail
from customer inner join cruise_book on cruise_book.cruise_cd=customer.cruise_cd inner join CRUISE on CRUISE.cruise_cd=cruise_book.cruise_cd
where customer.cust_nm='Ann Dull'
3)
select oper_nm,cust_nm
from customer inner join CRUISE on customer.cruise_cd=CRUISE.cruise_cd inner join OPERATOR on OPERATOR.oper_cd=CRUISE.oper_cd
where CRUISE.price=(select max(price) from CRUISE)
4)
select cruise_cd,convert(char(2),convert(float,seats_avail)/convert(float,tot_seats)*100)+'%' as '空闲率'
from cruise_book
where (tot_seats-seats_avail)=(select min(tot_seats-seats_avail) from cruise_book)
5)
select des_city,sum(tot_seats-seats_avail) as sn
from cruise_book inner join CRUISE on cruise_book.cruise_cd=CRUISE.cruise_cd
group by CRUISE.des_city
order by sn desc
6)
select cruise_nm from CRUISE where cruise_cd not in
(select cruise_cd from cruise_book)
7)
select cruise_nm,duration from CRUISE
where
duration=(select min(duration) from CRUISE )