Operation Details |
Description: | Returns the hearing ID for the latest hearing of the specified status on the specified appeal case. |
Sterotype: | ns |
SQL |
SELECT hearingID INTO :hearingID FROM Hearing WHERE caseID = :caseID AND statusCode = :statusCode AND scheduledDateTime = ( SELECT MAX(scheduledDateTime) FROM Hearing WHERE caseID = :caseID AND statusCode = :statusCode ) |