RE: Random Select Statement - help please

2002-01-09 Thread Rick Emery
Easier method: SELECT * FROM people ORDER BY RAND() LIMIT 1; -Original Message- From: David V. Edelstein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 1:08 PM To: 'Roger Baklund' Cc: '[EMAIL PROTECTED]' Subject: Random Select Statement - help please

RE: Random Select Statement - help please

2002-01-09 Thread Roger Baklund
* David V. Edelstein > I would like to create a mySQL query that will find the max > user_id, use this value to calculate a random value of the > user_id from [1 thru max], then return the entire row for > that person(user_id) filled in with that persons(row) four > entities, which I can use to po

Random Select Statement - help please

2002-01-09 Thread David V. Edelstein
Hi Roger, Thanks for your reply and I apologize for my lack of specificity on my previous email, thanks for your patience :). I have a people object that has 4 entities. name, pword, user_id, picurl This data is stored in the people table. Each user is identified by a unique user_id. I would li