SELECT
OrganisationUnit.organisationUnitID,
OrganisationUnit.name,
OrganisationUnit.businessTypeCode,
OrganisationUnit.creationDate,
OrganisationUnit.recordStatus,
OrganisationUnit.comments,
OrganisationUnit.defaultPrinterID,
OrganisationUnit.statusCode
INTO
:organisationUnitID,
:name,
:businessTypeCode,
:creationDate,
:recordStatus,
:comments,
:defaultPrinterID,
:statusCode
FROM
OrganisationUnit,
OrgUnitParentLink
WHERE OrgUnitParentLink.organisationStructureID = :organisationStructureID
AND OrganisationUnit.organisationUnitID = OrgUnitParentLink.organisationUnitID
AND OrganisationUnit.recordStatus = :recordStatus
AND UPPER(OrganisationUnit.name) = :name
|