I have three tables as shown in the screenshot below:
But when I want to perform the following query, i get no results, even though there is data in all three tables:
Here is the generated code:
SELECT Clients.ClientID, Clients.FirstName, Clients.Surname, Clients.Internal, Clients.Organisation, Clients.LandlineNo, Clients.MobileNo, Clients.Address1, Clients.Town,
Clients.Postcode, Clients.Email, Clients.NHS, Clients.PurchaseOrderNumber, Bookings.Date, Bookings.Timebegan, Bookings.Timefinished, Bookings.Price,
Bookings.Repeats, Bookings.Rweeks, Bookings.Rdays, Bookings.Rmonths, Bookings.Occurrences, Rooms.Roomname
FROM Clients INNER JOIN
Bookings ON Clients.ClientID = Bookings.ClientID INNER JOIN
Rooms ON Bookings.RoomID = Rooms.RoomID