Convert(int,sys.fn_sqlvarbasetostr(hashbytes('md5','1455985476'))) Today

: Selecting a deterministic but seemingly random subset of rows (e.g., WHERE ABS(HashConvert) % 10 = 0 for a 10% sample).

: Distributing data rows into different "buckets" or shards by hashing a unique ID. : Selecting a deterministic but seemingly random subset

: Using sys.fn_sqlvarbasetostr is generally discouraged in production code because it is an undocumented internal function. A more standard approach in T-SQL is CONVERT(INT, HashBytes('MD5', '...'), 2) or directly casting the binary to an integer. : Selecting a deterministic but seemingly random subset

: Creating a non-obvious integer ID from a sensitive string. : Selecting a deterministic but seemingly random subset