Operation Details |
Description: | Retrieves the scheduled date of the latest hearing with the given status for a case. |
Sterotype: | ns |
SQL |
SELECT scheduledDateTime INTO :scheduledDateTime FROM Hearing WHERE caseID = :caseID AND statusCode = :statusCode AND scheduledDateTime = ( SELECT MAX(scheduledDateTime) FROM Hearing WHERE caseID = :caseID AND statusCode = :statusCode ) |