i really want to get this assignment over and done with but am already stcuk on the first one
the question is :
Find the average of the room price (regardless of room type) for hotel ‘ANA’ (you assume that you do not know the hotel_no and you disregard the room types).
i have tried this :SELECT AVG(R_PRICE), H_NAME
FROM ROOMS, HOTELS
WHERE H_NAME = 'ANA'
but doesn't work ...i could do it if the avg thing wasn't there.
any tips?
the question is :
Find the average of the room price (regardless of room type) for hotel ‘ANA’ (you assume that you do not know the hotel_no and you disregard the room types).
i have tried this :SELECT AVG(R_PRICE), H_NAME
FROM ROOMS, HOTELS
WHERE H_NAME = 'ANA'
but doesn't work ...i could do it if the avg thing wasn't there.
any tips?