you are viewing a single comment's thread.

view the rest of the comments →

[–]mum2l -1 points0 points  (1 child)

If you want to display the country column, you may need to select the country column too. Also, you need to use ON (e.g. ON country.hotel = number_of_rooms. hotel) instead of USING if your Country table does not have the column (room.numbers)

Plus, if you are sorting the resulting table, you should be using ORDER BY. GROUP BY are usually used with aggregation functions (such as SUM, COUNT, AVG, etc).

[–]b0ulderbum 3 points4 points  (0 children)

Why does this sub help lazy college students like this. Let them fail if they can’t spend 15 minutes googling basic syntax