the price of the hotel made now will change on a certain date. The database structure looks like this. Ignoring most of the fields, room_type
is the id, price of the room type is bound to him.
</span>
+ () 3*4 + 1
<hr>
<hr>
<hr>
130$
+-----------------+
| |
v v
150$
+----------------------------------------------------------+
| |
v 120$ v
+-------------------+
| |
v v
+--------------------------------------------+
I want to inquire about the price from the start date to the end date. In fact, there are three paragraphs that are 120,150,130
. What are you going to do if they don"t conflict between the start and end times at the time of insertion.