You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT reservation_id, last_name, first_name, room_number, DATE_FORMAT(check_in_date,'%Y-%m-%d') as check_in_date, DATE_FORMAT(check_out_date,'%Y-%m-%d') as check_out_date
FROM reservations
JOIN guests USING(guest_id)
JOIN rooms USING(room_id)
ORDER BY check_in_date;
CREATE OR REPLACE VIEW viewCancellations AS
SELECT last_name, first_name, DATE_FORMAT(cancellation_date, '%Y-%m-%d') as cancellation_date,
DATE_FORMAT(orig_check_in_date, '%Y-%m-%d') as orig_check_in_date, DATE_FORMAT(orig_check_out_date,'%Y-%m-%d') as orig_check_out_date, cancellation_fee