SQL Query to prevent multiple results of same offer
Hi There,
I have a travel comparison site and am trying to write a query so that, only 1 record is shown, per departure airport, per accommodation per date. Currently it returns loads of essentially the same offer.
e.g. no same airports, on the same date, in the same hotel.
Currently i'm at:
Code:
SELECT * FROM search_results WHERE departure date = '01-07-2015' AND starrating >= 3 ORDER BY priceperadult ASC
Please help!
Subject
Written By
Posted
SQL Query to prevent multiple results of same offer
February 24, 2016 01:11PM
February 24, 2016 02:41PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.