Database SQL Operation: Hearing.readLatestParticipatedAndTypeDetailsByCaseAndStatus
Description: | Returns the type and participated details for the latest hearing with the specified status for the specified appeal case. |
Sterotype: | ns |
SELECT
typeCode,
respondentParticipatedCode,
thirdPartyParticipatedCode
INTO
:typeCode,
:respondentParticipatedCode,
:thirdPartyParticipatedCode
FROM
Hearing
WHERE caseID = :caseID
AND scheduledDateTime =
(
SELECT
MAX(scheduledDateTime)
FROM
Hearing
WHERE caseID = :caseID
AND statusCode = :statusCode
)
AND statusCode = :statusCode
|