I have a view that displays a random selection of ids for each user in my db.
id name selection
9 jay 4
5 jay 4
3 jan 4
1 jan 4
4 joe 4
8 joe 4
for each user, i need to update the top 5 ids in the selection column to a random 1 or 0 value. (rand() for each id seed)
is this possible?
id name selection
9 jay 4
5 jay 4
3 jan 4
1 jan 4
4 joe 4
8 joe 4
for each user, i need to update the top 5 ids in the selection column to a random 1 or 0 value. (rand() for each id seed)
is this possible?