The exact form in which you enter a particular value depends upon the platform you are using. Therefore, calculations involving binary data can produce different results on different machines.
You cannot use the aggregate functions dum or avg with the binary datatypes.
For platform-independent conversions between hexadecimal strings and integers, use the inttohex and hextoint functions rather than the platform-specific convert function. For details, see Transact-SQL Users Guide.