Re: join subquerie rand problem

2004-07-20 Thread Gerske, Sebastian
thats exactly what i wanted - the perfekt solution, now i have to thing about performance but thanks to Shawn Green for trying to help :> ""Arnaud"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > > i have lets say 1000 different fruits > > and 1000 different animals > > with

Re: join subquerie rand problem

2004-07-20 Thread Gerske, Sebastian
fruit_id) > SELECT (id_fruits, id_animals) > FROM fruits_animals > > SELECT * > FROM tmpDedupe > ORDER BY RAND() > LIMIT 100 > > DROP TABLE tmpDedupe > > Make sense? > > Yours, > Shawn Green > Database Administrator > Unimin Corporation - Spruce P

Re: join subquerie rand problem

2004-07-20 Thread Gerske, Sebastian
> B) You want a list of 100 un-duplicated random rows from the relationship > table? > - OR - > C) Each time you run your query containing "ORDER BY RAND()" , you get the > exact same set of records back? > > Yours, > Shawn Green > Database Administrator > Unimi

Re: join subquerie rand problem

2004-07-20 Thread Gerske, Sebastian
i think its not even possible with subqueries ""Gerske, Sebastian"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > help me please :/ > > > ""Gerske, Sebastian"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag

Re: join subquerie rand problem

2004-07-20 Thread Gerske, Sebastian
help me please :/ ""Gerske, Sebastian"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hello list, > > i still need a solution for my 3 table join rand problem, im using version > 4.1 now so subqueries are possible: > > explanati

join subquerie rand problem

2004-07-20 Thread Gerske, Sebastian
Hello list, i still need a solution for my 3 table join rand problem, im using version 4.1 now so subqueries are possible: explanation: i have 3 tables lets say: fruits: id, name 1banana 2apple 3strawberry fruits_animals id, id_fruits, id_animals 11 2 2

Repost: Order by RAND + join problem

2004-06-01 Thread Gerske, Sebastian
Hello list, im having a hughe problem with the RAND() function first of all im using mysql 3.23 so subquerys are impossible. Im having three tables which are joined by ID's now i want to select a single row random out of the join set whats the best way to do it? My Table structure is: table1

Oder by RAND Problem

2004-05-24 Thread Gerske, Sebastian
Hello list, im having a hughe problem with the RAND() function first of all im using mysql 3.23 so subquerys are impossible. table1 --- | id | content | | 1 | apple | --- relation_table | id | id_table1 | id_table2 | | 1 | 1