frustrating
Registered User.
- Local time
- Today, 11:52
- Joined
- Oct 18, 2012
- Messages
- 68
Hey everyone,
I'm having a pretty hard time creating what should be a pretty simple query. I have a field called "Random" which I want to populate the fields with either a 0 or 1. The problem is I use this query:
Which obviously changes them all to a 0 or 1, but I need it to do it for each record separately.
Any ideas on how to create a query that loops through each one and performs that function?
I'm having a pretty hard time creating what should be a pretty simple query. I have a field called "Random" which I want to populate the fields with either a 0 or 1. The problem is I use this query:
Code:
UPDATE words SET words.Random = Int((1-0+1)*Rnd()+0);
Which obviously changes them all to a 0 or 1, but I need it to do it for each record separately.
Any ideas on how to create a query that loops through each one and performs that function?