I want to select from these 3 tables :
=> The following 2 test queries each from 2 tables combinations work:
SELECT CombCt.*, Activities.place, Activities.ref
FROM (Activities inner JOIN CombCt ON Activities.actdat=Combct.actDat)
ORDER BY Combct.actDat ASC
SELECT CombCt.*, Members.membernum, Members.name
FROM (Members left JOIN CombCt ON Members.membernum=CombCt.membernum)
WHERE Members.membernum>=1
ORDER BY Members.name, Combct.actDat ASC
=> But this query from the 3 tables does not work:
SELECT CombCt.*, Activities.place, Activities.ref, Members.membernum, Members.name
FROM Activities inner JOIN CombCt ON Activities.actdat=CombCt.actDat
left JOIN Members ON Members.membernum=CombCt.membernum)
WHERE Members.membernum>=1
ORDER BY Members.name, Combct.actDat ASC
Thanks for help tips
Leifoet
table Members
table Activities (= matches, location, time etc. )
table CombCt (= who plays when where which matches => with reference fields to/from Members + Activities
table Activities (= matches, location, time etc. )
table CombCt (= who plays when where which matches => with reference fields to/from Members + Activities
=> The following 2 test queries each from 2 tables combinations work:
SELECT CombCt.*, Activities.place, Activities.ref
FROM (Activities inner JOIN CombCt ON Activities.actdat=Combct.actDat)
ORDER BY Combct.actDat ASC
SELECT CombCt.*, Members.membernum, Members.name
FROM (Members left JOIN CombCt ON Members.membernum=CombCt.membernum)
WHERE Members.membernum>=1
ORDER BY Members.name, Combct.actDat ASC
=> But this query from the 3 tables does not work:
SELECT CombCt.*, Activities.place, Activities.ref, Members.membernum, Members.name
FROM Activities inner JOIN CombCt ON Activities.actdat=CombCt.actDat
left JOIN Members ON Members.membernum=CombCt.membernum)
WHERE Members.membernum>=1
ORDER BY Members.name, Combct.actDat ASC
Thanks for help tips
Leifoet