markman123
02-28-2010, 10:51 PM
Hi All,
I'm trying to create a query in Access - not sure if a Macro is required, or if this is just a straight up SQL query.
The dilemna I have is I'm OUTER JOINING two tables, one named 'Projects' and the other 'Comments'. There may be several Comments for each Project, and they have enforced referential integrity between 'Projects.ProjectID' and 'Comments.ProjectID'.
What I need done is return a list of all the projects, and a concatenation of the comments in the comments field, so as to return all of the comments in one Row. I'm lost as to how to google this...
Here is what I have so far (if it helps)
SELECT Project.ProjectID, Project.ProjectName, Comments.Comment
FROM Project LEFT JOIN Comments ON Project.ProjectID = Comments.ProjectID
Can this be done?
While I'm here, is it possible to have an "LEFT JOIN WHERE" kind of clause? I've had no success because I don't understand the parenthesis required in Access.
Thank you,
Mark
I'm trying to create a query in Access - not sure if a Macro is required, or if this is just a straight up SQL query.
The dilemna I have is I'm OUTER JOINING two tables, one named 'Projects' and the other 'Comments'. There may be several Comments for each Project, and they have enforced referential integrity between 'Projects.ProjectID' and 'Comments.ProjectID'.
What I need done is return a list of all the projects, and a concatenation of the comments in the comments field, so as to return all of the comments in one Row. I'm lost as to how to google this...
Here is what I have so far (if it helps)
SELECT Project.ProjectID, Project.ProjectName, Comments.Comment
FROM Project LEFT JOIN Comments ON Project.ProjectID = Comments.ProjectID
Can this be done?
While I'm here, is it possible to have an "LEFT JOIN WHERE" kind of clause? I've had no success because I don't understand the parenthesis required in Access.
Thank you,
Mark