Bellow is my “rooms” mysql table. (This is example table i have created to show here.)

I want to show low cost rooms in case multiple room bookings. Ex: User have select two room, 1 adult in first room and 2 adults in second room. Now my result should come as below

My Query is : SELECT * FROM rooms WHERE hotel_code=”100″ GROUP BY adult+child Order by cost ASC
It is not working. I am not able to get the expected result with this query. Please let me know the solution for this.
Try this:
SQL Fiddle Demo
This will give you: