Using Microsoft Access:


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



SELECT

dbo_RECORDS.FIRST_NAME & " " & dbo_RECORDS.Last_NAME AS Name,

dbo_ADDRESS.ADDRESS_BLOCK, dbo_ADDRESS.CITY

FROM

(dbo_RECORDS INNER JOIN dbo_CONSTIT_ADDRESS ON

dbo_RECORDS.ID = dbo_CONSTIT_ADDRESS.CONSTIT_ID) INNER JOIN

dbo_ADDRESS ON dbo_CONSTIT_ADDRESS.ADDRESS_ID = dbo_ADDRESS.ID

WHERE

(((dbo_CONSTIT_ADDRESS.INDICATOR)=2));

Using SQL Server Query Analyzer:


SELECT RECORDS.FIRST_NAME, RECORDS.LAST_NAME, RECORDS.ORG_NAME, ADDRESS.ADDRESS_BLOCK, ADDRESS.CITY, ADDRESS.STATE,

ADDRESS.POST_CODE

FROM RECORDS INNER JOIN

CONSTIT_ADDRESS ON RECORDS.ID = CONSTIT_ADDRESS.CONSTIT_ID INNER JOIN

ADDRESS ON CONSTIT_ADDRESS.ADDRESS_ID = ADDRESS.ID

WHERE (CONSTIT_ADDRESS.INDICATOR = 2)

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.