SELECT
ProspectPerson.primaryAlternateID,
ProspectPerson.maritalStatusCode,
ProspectPerson.dateOfBirth,
ProspectPerson.gender,
ProspectPerson.ethnicOriginCode,
AlternateName.title,
AlternateName.firstForename,
AlternateName.otherForename,
AlternateName.surname
INTO
:primaryAlternateID,
:maritalStatusCode,
:dateOfBirth,
:gender,
:ethnicOriginCode,
:title,
:firstForename,
:otherForename,
:surname
FROM
ProspectPerson,
AlternateName
WHERE ProspectPerson.concernRoleID = :concernRoleID
AND AlternateName.alternateNameID = ProspectPerson.primaryAlternateNameID
|