Dan, thanks a lot to take time out for the reply!
In the meantime, I found out a way.
This one works probably only on SQL server
though:
SELECT temp1.trainer_id,
tbl_slots.slot_id
FROM tbl_slots
CROSS JOIN temp1
LEFT OUTER JOIN tbl_trainer_bookings
ON tbl_trainer_bookings.trainer_id =...
Hi all,
I need some help with a query:
I have 3 tables:
tbl_trainer_bookings
.trainer_booking_id PK
.slot_id
.trainer_id
tbl_slots
.slot_id PK
temp1 (temporary table, trainer_id could be considered PK)
.trainer_id
I need a list of all combinations of
trainer_id and slot_id that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.