Wait a minute - BINTONHEX(A.PARTNER_GUID) = B.PARTNER_NO - in your earlier post you wrote that the PARTNER_GUID and PARTNER_NO are of the same data type anyhow.
Upon re-reading I realized that this is not the case.
The conversion has to happen as PARTNER_NO in CRMD_PARTNER is a character data type.
For the database layer there is no way to "know" that both columns essentially store the same information.
Would be interesting to hear what the application colleagues can say about this choice of data types.
- Lars