How do I generate a random number for each row in a T-SQL select?
I need a different random number for each row in my table. The following seemingly obvious code uses the same random value for each row. SELECT table_name, RAND() magic_number FROM information_schema.tables I’d like to get an INT or a FLOAT out of this. The rest of the story is I’m going to use this random … Read more