Insert random number
UPDATE CompetitionEventStudent
SET random = abs(checksum(NewId()) % 10000)
UPDATE CES
SET random = abs(checksum(NewId()) % 10000)
--select *
FROM [CTS].[dbo].[CompetitionEventStudent] CES
join CTS.dbo.CompetitionEvent CE on CE.[CompetitionEventId] = CES.[CompetitionEventId]
WHERE (CompetitionId = 65)