Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Assistance With Query
Message
General information
Forum:
Microsoft Office
Category:
Access
Title:
Need Assistance With Query
Miscellaneous
Thread ID:
01515650
Message ID:
01515650
Views:
94
I'm really stuck here. I can't figure out how to add this table into this query.

I am trying to add in the Titles table shown here:
http://maroisconsulting.com/temp/query.png

This is my query so far:
SELECT d.GroupId, Sum(d.cert_complete) AS SumOfcert_complete, Count(d.cert_complete) AS CountOfcert_complete
FROM (SELECT DISTINCT s.GroupId, e.EmployeeID, IIf(e.Certified Is Null,0,1) AS cert_complete FROM (Stores AS s INNER JOIN EmployeeStores AS es ON s.StoreId=es.StoreId) INNER JOIN Employees AS e ON es.EmployeeId=e.EmployeeID)  AS d INNER JOIN Groups ON d.GroupId = Groups.GroupId
GROUP BY d.GroupId;
Once it's in, I'm going to add
WHERE Titles.IsManager
Problem is, I don'tm understand this goofy sql syntax access uses. The nested joins are driving me crazy.

Where/how in the above to I join to the Titles table???
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Reply
Map
View

Click here to load this message in the networking platform