i have a table named hotel with 2 columns named : hotel_name , hotel_price
hotel_name | hotel_price hotel1 | 5 hotel2 | 20 hotel3 | 100 hotel4 | 50 and another table named city that contains the column : city_name , average_prices
city_name | average_prices paris | 20 london | 30 rome | 75 madrid | 100 I want to find which hotel has a price that's more expensive than average prices in the cities.For example i want in the end to find something like this:
hotel_name | city_name hotel3 | paris --hotel3 is more expensive than the average price in paris hotel3 | london --hotel3 is more expensive than the average price in london etc. hotel3 | rome hotel4 | paris hotel4 | london (I found the hotels that are more expensive than the average prices of the cities)
Any help would be valuable thank you .