Note: This code is written and intended for use in SQL Server Query Analyzer and will not work in Microsoft Access.


SELECT RECORDS.FIRST_NAME FIRSTNAME, RECORDS.LAST_NAME LASTNAME,

VOLTYPE.LONGDESCRIPTION VOLUNTEERTYPE, VOLCOURSE.LONGDESCRIPTION VOLUNTEERCOURSE





FROM RECORDS INNER JOIN VOLUNTEER ON RECORDS.ID = VOLUNTEER.RECORD_ID

INNER JOIN VOL_COURSE ON VOLUNTEER.ID = VOLUNTEER_ID

INNER JOIN VOL_TYPE ON VOLUNTEER.ID = VOL_TYPE.VOLUNTEER_ID

INNER JOIN TABLEENTRIES VOLTYPE ON VOLTYPE.TABLEENTRIESID = VOL_TYPE.VOLUNTEER_TYPE

INNER JOIN TABLEENTRIES VOLCOURSE ON VOLCOURSE.TABLEENTRIESID = VOL_COURSE.COURSE

Disclaimer: We provide programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Our Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.