Operation Details |
Description: | Retrieves details about the latest hearing for the specified case. |
Sterotype: | ns |
SQL |
SELECT hearingID, referenceNumber, scheduledDateTime INTO :hearingID, :hearingReference, :scheduledDateTime FROM Hearing WHERE caseID = :caseID AND statusCode = :statusCode AND scheduledDateTime = ( SELECT MAX(scheduledDateTime) FROM Hearing WHERE caseID = :caseID AND statusCode = :statusCode ) |