program request (input,output); DATABASE PERS = FILENAME 'PERSONNEL'; DECLARE_VARIABLE OF name SAME AS PERS.EMPLOYEES.LAST_NAME; REQ1 : RDML$HANDLE_TYPE; begin REQ1 := 0; name := 'Gray'; READY PERS; START_TRANSACTION READ_ONLY; FOR (REQUEST_HANDLE REQ1) E IN PERS.EMPLOYEES WITH E.LAST_NAME = name writeln (E.FIRST_NAME); END_FOR; if not RDB$RELEASE_REQUEST(RDB$MESSAGE_VECTOR, REQ1) then RDML$SIGNAL_ERROR(RDB$MESSAGE_VECTOR); COMMIT; FINISH; end.