Answered
cfquery join issue
i have had an issue where i am trying to join these 3 tables
and count the records in the subquery. if anyone can provide some
help with this,.... thnx.
SELECT DISTINCT *
FROM ((stSupportTroubleTicket t
LEFT JOIN stEmployee e ON e.Emp_ID = t.UsersID)
LEFT JOIN stTTdiscussion d ON d.ttID = t.ID)
WHERE t.complete = 0 AND t.project = 0
ORDER BY t.ID DESC
i'm trying to COUNT the records in stTTdiscussion.
(this is a support trouble ticket program that has a comment on ticket section. I am making a digg.com type 15 comments interface and i would like to know the number of comments in that one ticket.)
MSAccess db, win2K3, MX 6.1
SELECT DISTINCT *
FROM ((stSupportTroubleTicket t
LEFT JOIN stEmployee e ON e.Emp_ID = t.UsersID)
LEFT JOIN stTTdiscussion d ON d.ttID = t.ID)
WHERE t.complete = 0 AND t.project = 0
ORDER BY t.ID DESC
i'm trying to COUNT the records in stTTdiscussion.
(this is a support trouble ticket program that has a comment on ticket section. I am making a digg.com type 15 comments interface and i would like to know the number of comments in that one ticket.)
MSAccess db, win2K3, MX 6.1