MySQL Forums
Forum List  »  Newbie

Re: Select rows with the same value and assign a random number to them
Posted by: Peter Brawley
Date: May 06, 2021 10:37AM

Is this what you mean?

select distinct number, rand(number)
from tbl;

Options: ReplyQuote


Subject
Written By
Posted
Re: Select rows with the same value and assign a random number to them
May 06, 2021 10:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.