• Talvin Singh (12/1/2016)


    oh cr*p, that has worked!!!

    so ORDER BY NEWID() is a random function?

    It's not a random function, but it creates a random value which is designed to be a uniqueidentifier. It will create a different value for each row (unlike RAND which needs a different seed to return different results in the same query). So when you order by it, the order becomes random.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2