HEX

Returns a hexadecimal representation of a value. The argument can be any value.

Example:

Use the HEX function to return a hexadecimal representation of the education level for each employee.

  SELECT FIRSTNME, MIDINIT, LASTNAME, HEX(EDLEVEL)
    FROM EMPLOYEE