I have a table with columns (C1, C2, C3, number) and tried following command
SELECT CAST(HASHBYTES(\'MD2\' CONCAT_WS(\'|\', C1, C2)) AS int) AS \'ID\' ,C1