I have the view listed below and want to add a table from another data base to it. The data base is Institute and the table is Prospect_Applicant.
SELECT DISTINCT
dbo.PEOPLE.PEOPLE_ID, dbo.PEOPLE.FIRST_NAME, dbo.PEOPLE.LAST_NAME, dbo.ACADEMIC.ACADEMIC_YEAR, dbo.ACADEMIC.ACADEMIC_TERM,
dbo.ADDRESS.ADDRESS_LINE_1, dbo.ADDRESS.STATE, dbo.ADDRESS.CITY, dbo.ADDRESS.ZIP_CODE, dbo.ADDRESS.DAY_PHONE,
dbo.ADDRESS.EVENING_PHONE, dbo.ADDRESS.EMAIL_ADDRESS, dbo.volunteer_interest.people_code_id,
dbo.volunteer_interest.last_name AS Recruiter_LName, dbo.volunteer_interest.first_name AS Recruiter_FName,
dbo.volunteer_interest.address_line_1 AS RecruiterAdd, dbo.volunteer_interest.city AS Recruiter_City, dbo.volunteer_interest.state AS Recruiter_State,
dbo.volunteer_interest.zip_code AS Recruiter_Zip_Code, dbo.volunteer_interest.email_address AS Recruiter_Email,
dbo.ACADEMIC.APP_DECISION
FROM dbo.PEOPLE LEFT OUTER JOIN
dbo.ADDRESS ON dbo.PEOPLE.PREFERRED_ADD = dbo.ADDRESS.ADDRESS_TYPE AND
dbo.PEOPLE.PEOPLE_CODE_ID = dbo.ADDRESS.PEOPLE_ORG_CODE_ID LEFT OUTER JOIN
dbo.ACADEMIC ON dbo.PEOPLE.PEOPLE_CODE_ID = dbo.ACADEMIC.PEOPLE_CODE_ID LEFT OUTER JOIN
Institute.dbo.SemesterInfo Sem ON dbo.ACADEMIC.ACADEMIC_YEAR = Sem.academic_year RIGHT OUTER JOIN
dbo.volunteer_interest ON dbo.ADDRESS.CITY = dbo.volunteer_interest.city AND dbo.ADDRESS.STATE = dbo.volunteer_interest.state
WHERE (dbo.ACADEMIC.ACADEMIC_FLAG = 'n') AND (dbo.ACADEMIC.APPLICATION_FLAG = 'y') AND (Sem.offset = '0') AND
(dbo.ACADEMIC.APP_DECISION <> 'cx') AND (dbo.ACADEMIC.APP_DECISION <> 'rej')
SELECT DISTINCT
dbo.PEOPLE.PEOPLE_ID, dbo.PEOPLE.FIRST_NAME, dbo.PEOPLE.LAST_NAME, dbo.ACADEMIC.ACADEMIC_YEAR, dbo.ACADEMIC.ACADEMIC_TERM,
dbo.ADDRESS.ADDRESS_LINE_1, dbo.ADDRESS.STATE, dbo.ADDRESS.CITY, dbo.ADDRESS.ZIP_CODE, dbo.ADDRESS.DAY_PHONE,
dbo.ADDRESS.EVENING_PHONE, dbo.ADDRESS.EMAIL_ADDRESS, dbo.volunteer_interest.people_code_id,
dbo.volunteer_interest.last_name AS Recruiter_LName, dbo.volunteer_interest.first_name AS Recruiter_FName,
dbo.volunteer_interest.address_line_1 AS RecruiterAdd, dbo.volunteer_interest.city AS Recruiter_City, dbo.volunteer_interest.state AS Recruiter_State,
dbo.volunteer_interest.zip_code AS Recruiter_Zip_Code, dbo.volunteer_interest.email_address AS Recruiter_Email,
dbo.ACADEMIC.APP_DECISION
FROM dbo.PEOPLE LEFT OUTER JOIN
dbo.ADDRESS ON dbo.PEOPLE.PREFERRED_ADD = dbo.ADDRESS.ADDRESS_TYPE AND
dbo.PEOPLE.PEOPLE_CODE_ID = dbo.ADDRESS.PEOPLE_ORG_CODE_ID LEFT OUTER JOIN
dbo.ACADEMIC ON dbo.PEOPLE.PEOPLE_CODE_ID = dbo.ACADEMIC.PEOPLE_CODE_ID LEFT OUTER JOIN
Institute.dbo.SemesterInfo Sem ON dbo.ACADEMIC.ACADEMIC_YEAR = Sem.academic_year RIGHT OUTER JOIN
dbo.volunteer_interest ON dbo.ADDRESS.CITY = dbo.volunteer_interest.city AND dbo.ADDRESS.STATE = dbo.volunteer_interest.state
WHERE (dbo.ACADEMIC.ACADEMIC_FLAG = 'n') AND (dbo.ACADEMIC.APPLICATION_FLAG = 'y') AND (Sem.offset = '0') AND
(dbo.ACADEMIC.APP_DECISION <> 'cx') AND (dbo.ACADEMIC.APP_DECISION <> 'rej')