Im trying to run a query like this:
Display the names of pairs of customers who have booked the same room together with the details of the location and room.
I did try like this:
select cust_name, room_name, cost_per_day, capacity, loc_name, avenue_site.address
from customer, aroom, booking, avenue_site
WHERE aroom.room# = booking.room#
and customer.customer# = booking.customer#
and avenue_site.location# = aroom.location#
;
but all I got was:
CUST_NAME ROOM_NAME COST_PER_DAY CAPACITY LOC_NAME
------------------------- --------------- ---------------------- ---------------------- ---------------
Conferences4U McGordon Hall 1100 125 Union Centre
Art 2 the People McGordon Hall 1100 125 Union Centre
Art 2 the People Robert Hall 300 30 Union Centre
Art 2 the People Robert Hall 300 30 Union Centre
Conferences4U Lavender Room 2000 200 Garthdee Centre
Art 2 the People Swallow Hall 3700 290 Dyce Centre
6 rows selected