Database SQL Operation: HouseholdRelationship.searchByRelationshipType
Description: | Searches for any relationships of a specific type that a household member has with other members of the household. |
Sterotype: | nsmulti |
SELECT
ConcernRoleRelationship.relConcernRoleID
INTO
:relParticipantRoleID
FROM
ConcernRoleRelationship,
HouseholdRelationship
WHERE ConcernRoleRelationship.concernRoleRelationshipID = HouseholdRelationship.concernRoleRelationshipID
AND ConcernRoleRelationship.concernRoleID = :participantRoleID
AND ConcernRoleRelationship.relationshipType = :relationshipType
AND ConcernRoleRelationship.statusCode = :relationshipStatusCode
|