19 | | [[Image(selected reservation.png)]] |
| 19 | //На следната слика се прикажани филтрираните податоци за резервирани соби.// |
| 20 | |
| 21 | [[Image(reservation_for_rooms.png)]] |
| 22 | |
| 23 | {{{#!sql |
| 24 | select room_type, price, name, full_name, phone_number, start_date, end_date, number_guests, adults, children |
| 25 | from guests_make_reservation gmr |
| 26 | join user_table ut on |
| 27 | gmr.user_id = ut.user_id |
| 28 | join reservation r on |
| 29 | gmr.reservation_id = r.reservation_id |
| 30 | join rooms r2 on |
| 31 | r.room_id = r2.room_id |
| 32 | join villa v on |
| 33 | r.villa_id = v.villa_id |
| 34 | order by start_date; |
| 35 | }}} |
| 40 | |
| 41 | [[Image(reservation_for_meal.png)]] |
| 42 | |
| 43 | |
| 44 | {{{#!sql |
| 45 | select full_name, meal_type, quantity, price, number_guests, start_date |
| 46 | from reservation_for_prepared_meal rfpm |
| 47 | join prepared_meal pm on |
| 48 | rfpm.prepared_meal_id = pm.prepared_meal_id |
| 49 | join meal m on |
| 50 | rfpm.meal_id = pm.meal_id |
| 51 | join reservation r on |
| 52 | rfpm.reservation_id = r.reservation_id |
| 53 | join guests_make_reservation gmr on |
| 54 | r.reservation_id = gmr.reservation_id |
| 55 | join user_table ut on |
| 56 | gmr.user_id = ut.user_id |
| 57 | order by start_date; |
| 58 | }}} |
| 59 | |
| 60 | //На следната слика се прикажани филтрираните податоци за резервирани пијалоци.// |
| 61 | |
| 62 | |
| 63 | [[Image(service_for_beverages.png)]] |
| 64 | |
| 65 | {{{#!sql |
| 66 | select full_name, service_type, beverage_type, b.price |
| 67 | from service_for_beverages sfb |
| 68 | join service s on |
| 69 | sfb.service_id = s.service_id |
| 70 | join beverage b on |
| 71 | sfb.beverage_id = b.beverage_id |
| 72 | join user_table ut on |
| 73 | s.user_id = ut.user_id ; |
| 74 | }}} |
| 75 | |
| 76 | //На следната слика се прикажани филтрираните податоци за резервирани настани.// |
| 77 | |
| 78 | [[Image(resrvation_for_events.png)]] |
| 79 | |
| 80 | |
| 81 | {{{#!sql |
| 82 | select event_type, price, start_date, end_date, number_of_interested_guests |
| 83 | from reservation_for_events rfe |
| 84 | join events e on |
| 85 | rfe.event_id = e.event_id |
| 86 | join reservation r on |
| 87 | rfe.reservation_id = r.reservation_id |
| 88 | order by start_date; |
| 89 | }}} |
| 90 | |
| 91 | //На следната слика се прикажани филтрираните податоци за резервирани активности.// |
| 92 | |
| 93 | |
| 94 | [[Image(resrvation_for_activity.png)]] |
| 95 | |
| 96 | {{{#!sql |
| 97 | select activity_type, price, start_date, end_date, number_of_interested_guests, activity_location |
| 98 | from reservation_for_activity rfa |
| 99 | join activities a on |
| 100 | rfa.activity_id = a.activity_id |
| 101 | join reservation r on |
| 102 | rfa.reservation_id = r.reservation_id |
| 103 | order by start_date; |
| 104 | }}} |
| 105 | |
| 106 | //На следната слика се прикажани филтрираните податоци за резервирани типови на услуга.// |
| 107 | |
| 108 | [[Image(resrvation_for_service.png)]] |
| 109 | |
| 110 | {{{#!sql |
| 111 | select full_name, service_type, price, start_date, end_date |
| 112 | from reservation_for_service rfs |
| 113 | join service s on |
| 114 | rfs.service_id = s.service_id |
| 115 | join reservation r on |
| 116 | rfs.reservation_id = r.reservation_id |
| 117 | join user_table ut on |
| 118 | s.user_id = ut.user_id |
| 119 | }}} |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |