SELECT
OrganisationUnit.organisationUnitID,
OrganisationUnit.name,
OrganisationUnit.businessTypeCode,
OrganisationUnit.creationDate,
OrganisationUnit.recordStatus,
OrganisationUnit.comments,
OrganisationUnit.defaultPrinterID,
OrganisationUnit.statusCode,
OrganisationUnit.versionNo,
OrgUnitParentLink.organisationStructureID,
OrgUnitParentLink.parentOrganisationUnitID,
OrganisationStructure.name
INTO
:organisationUnitID,
:name,
:businessTypeCode,
:creationDate,
:recordStatus,
:comments,
:defaultPrinterID,
:statusCode,
:versionNo,
:organisationStructureID,
:parentOrganisationUnitID,
:organisationStructureName
FROM
OrganisationUnit,
OrgUnitParentLink,
OrganisationStructure
WHERE OrgUnitParentLink.recordStatus = :recordStatus
AND OrganisationUnit.organisationUnitID = OrgUnitParentLink.organisationUnitID
AND OrganisationStructure.organisationStructureID = OrgUnitParentLink.organisationStructureID
|