In my SQL Users table each user has a unique ID and a unique Alias. I need to randomly pull Aliases from my User table and match them with a different users User ID in another table, the Activities table. The end result would be a random pairing of team members. I need code that would do this.
scootersays 0 Newbie Poster
Recommended Answers
Jump to PostIf you have a dilemma post the real question to your dilemma instead of being vague all over. And whats up with this kind of attitude? Maintain it and you would be sure to make a lot many friends here.
And as far as pushing on to the next …
Jump to PostWhat are you having problem with then? Generating random numbers in c++?
I think the following would be the best idea...
Let's say your table looked like this:
+table 1+ +table 2+ -------- --------- john rachel -------- -------- amy sarah -------- -------- Suzy Megan
Then …
Jump to Postiamthwee,
You are correct. That is basically what I am after. I need a code sample that would shuffle values from a column in one table and pair them at random with values in another table. If you have a code sample I would really appreciate it.
This?
All 9 Replies
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
scootersays 0 Newbie Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
scootersays 0 Newbie Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

iamthwee
scootersays 0 Newbie Poster

iamthwee
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.