Professional Documents
Culture Documents
1/
select * from hotel
query transaction:
1/select FIRST_NAME,LAST_NAME
from customer
order by FIRST_NAME asc
2/select c.first_name,c.last_name
from customer c,reservation re
where re.CNO=c.customer_id
3/
select RNO reserved
from room r ,reservation re
where r.room_id=re.RNO AND START_DATE='17-JUN-12'
4/update reservation
set END_DATE='20-JAN-20'
where RESERVATION_ID=2
query transaction:
1/
select RNO notreserved ,h.hotel_id
from room r ,reservation re,hotel h
where r.room_id=re.RNO AND r.HID=h.hotel_id AND START_DATE!='10-FEB-04'
2/