I have the following database structure:
season prices room_categories
--------------- --------------- ---------------
id id id
name season_id name
date_from category_id
date_to price
There are several seasons / prices for each room category and I need to find a query which joins those 3 tables like in the following example:
season room_categories prices
id --------------> category_id
id ----------------------------------> season_id
What would be the best way to create such an query? thanks in advance.