dereference-operation |--scoped-ref-expression-- -> --attribute-name------------------|
The dereference operation returns the named column value from the target table or a subtable, or the target view or a subview, of the scoped reference expression from the row with the matching object identifier column (OID column). See CREATE TABLE for further information on the OID column. The result can be null, regardless of whether the column corresponding to the attribute-name can be null. If there is no row in the target table with a matching OID, the result is null. The dereference operation takes precedence over all other operators.
The authorization ID of the statement that uses a dereference operation must have SELECT privilege on the target table of the scoped-ref-expression (SQLSTATE 42501).
SELECT EMPNO, DEPTREF->DEPTNAME FROM EMPLOYEE