E
Eric Dropps
Hello, trying to code this query in access--it keeps saying it can't do it!
This is a MySQL query, and it worked--perfectly
SELECT `sessions`.`sessionid`,`SessionName`, `cost`, `date`
FROM `sessions` LEFT JOIN `registration` ON
`sessions`.`sessionid`=`registration`.`sessionid` AND scoutid= sid
WHERE scoutid IS NULL ;
In this query, I want a list of sessions the user has NOT registered for
(aka no entry in registration table)
Tables:
sessions registration
scouts (not used in above query)
-------------- -------------------
--------------------
sessionid (PK) <---------> sessionid (PK,FK1) |-->
scoutid(PK)
other field N/A scoutid (PK,FK2) <---------|
other fields N/A
Can access not handle complex queries? Do i have to use a
*cough*slow*cough* subquery?
Thanks!
-Eric Dropps
This is a MySQL query, and it worked--perfectly
SELECT `sessions`.`sessionid`,`SessionName`, `cost`, `date`
FROM `sessions` LEFT JOIN `registration` ON
`sessions`.`sessionid`=`registration`.`sessionid` AND scoutid= sid
WHERE scoutid IS NULL ;
In this query, I want a list of sessions the user has NOT registered for
(aka no entry in registration table)
Tables:
sessions registration
scouts (not used in above query)
-------------- -------------------
--------------------
sessionid (PK) <---------> sessionid (PK,FK1) |-->
scoutid(PK)
other field N/A scoutid (PK,FK2) <---------|
other fields N/A
Can access not handle complex queries? Do i have to use a
*cough*slow*cough* subquery?
Thanks!
-Eric Dropps