random number sql for each row code example Example: t-sql random number for each row ABS(CHECKSUM(NewId())) % 14