【发布时间】:2015-08-30 04:57:26
【问题描述】:
delete from gust_card
where gust_card.c_id =
(select gust_card.c_id``
from gust_card,booking,room
where
gust_card.c_id=booking.c_id and
booking.room_id=room.room_id
and room.stranded='deluxe ' )
我想删除预订“豪华”客房的客户记录。
room table>> room_id , standard
guest_card table>> guest_id, guest name
booking table >> booking_id ,room_id,guest_id
【问题讨论】:
标签: sql-server sql-server-2008 sql-delete