P
Paul A Mountcastle Jr
Guest
All:
I am trying to generate a list of instructors with the course(s) they teach for the fall and spring semesters. I want to use the output for an MS Word mailmerge. I would like to see: Instructor info (name, address), course 1, course 2 (if there is one), etc.
To complicate matters, I am focusing on part time faculty only.
Below is the SQL view of the query I have built thus far, using three subqueries. The result give multiple rows for instructors who teach more than one course/semester.
Having problems wrapping my brain around this one,
Paul-
SELECT [Part Time Faculty].[Last Name], [Part Time Faculty].[First Name], [Part Time Faculty].[Street1 Line1], [Part Time Faculty].[Street1 Line2], [Part Time Faculty].[Street1 Line3], [Part Time Faculty].City1, [Part Time Faculty].State1, [Part Time Faculty].Zip1, [Part Time Faculty].[Natn Desc1], [Fall 2004 Courses].[Subj Code], [Fall 2004 Courses].[Crse Number], [Fall 2004 Courses].Title, [Fall 2004 Courses].[Credit Hours], [Fall 2004 Courses].[Day for Letter], [Fall 2004 Courses].[Begin Time1], [Fall 2004 Courses].[End Time1], [Spring 2005 Courses].[Subj Code], [Spring 2005 Courses].[Crse Number], [Spring 2005 Courses].Title, [Spring 2005 Courses].[Credit Hours], [Spring 2005 Courses].[Day for Letter], [Spring 2005 Courses].[Begin Time1], [Spring 2005 Courses].[End Time1], [Part Time Faculty].Salary
FROM ([Part Time Faculty] LEFT JOIN [Fall 2004 Courses] ON [Part Time Faculty].Id = [Fall 2004 Courses].[Primary Instructor Id]) LEFT JOIN [Spring 2005 Courses] ON [Part Time Faculty].Id = [Spring 2005 Courses].[Primary Instructor Id]
ORDER BY [Part Time Faculty].[Last Name];
I am trying to generate a list of instructors with the course(s) they teach for the fall and spring semesters. I want to use the output for an MS Word mailmerge. I would like to see: Instructor info (name, address), course 1, course 2 (if there is one), etc.
To complicate matters, I am focusing on part time faculty only.
Below is the SQL view of the query I have built thus far, using three subqueries. The result give multiple rows for instructors who teach more than one course/semester.
Having problems wrapping my brain around this one,
Paul-
SELECT [Part Time Faculty].[Last Name], [Part Time Faculty].[First Name], [Part Time Faculty].[Street1 Line1], [Part Time Faculty].[Street1 Line2], [Part Time Faculty].[Street1 Line3], [Part Time Faculty].City1, [Part Time Faculty].State1, [Part Time Faculty].Zip1, [Part Time Faculty].[Natn Desc1], [Fall 2004 Courses].[Subj Code], [Fall 2004 Courses].[Crse Number], [Fall 2004 Courses].Title, [Fall 2004 Courses].[Credit Hours], [Fall 2004 Courses].[Day for Letter], [Fall 2004 Courses].[Begin Time1], [Fall 2004 Courses].[End Time1], [Spring 2005 Courses].[Subj Code], [Spring 2005 Courses].[Crse Number], [Spring 2005 Courses].Title, [Spring 2005 Courses].[Credit Hours], [Spring 2005 Courses].[Day for Letter], [Spring 2005 Courses].[Begin Time1], [Spring 2005 Courses].[End Time1], [Part Time Faculty].Salary
FROM ([Part Time Faculty] LEFT JOIN [Fall 2004 Courses] ON [Part Time Faculty].Id = [Fall 2004 Courses].[Primary Instructor Id]) LEFT JOIN [Spring 2005 Courses] ON [Part Time Faculty].Id = [Spring 2005 Courses].[Primary Instructor Id]
ORDER BY [Part Time Faculty].[Last Name];