deref returns the object reference of argument expr, where expr must return a REF to an object. If you do not use this function in a query, then Oracle returns the object ID of the REF instead.