Re: Help me optimize my query

2002-11-22 Thread Michael T. Babcock
> > Im running the following query: > > > > SELECT > > user.nickname, > > user.id, > > user_detail.points > > FROM > > user, > > user_detail > > WHERE > > user.details = user_detail.id > > AND user.id > 101 > > AND user.language = 'en' > > ORDER BY user_detail.point

Re: Help me optimize my query

2002-11-22 Thread Roger Baklund
* Maximo Migliari > Im running the following query: > > SELECT > user.nickname, > user.id, > user_detail.points > FROM > user, > user_detail > WHERE > user.details = user_detail.id > AND user.id > 101 > AND user.language = 'en' > ORDER BY user_detail.

Re: Help me optimize my query

2002-11-21 Thread Daniel Kasak
John Ragan wrote: Im running the following query: SELECT user.nickname, user.id, user_detail.points FROM user, user_detail WHERE user.details = user_detail.id AND user.id > 101 AND user.language = 'en' ORDER BY user_detail.points DESC LIMIT 5; I don't really know how LEFT JOINS, INNER

Re: Help me optimize my query

2002-11-21 Thread John Ragan
> Im running the following query: > > SELECT > user.nickname, > user.id, > user_detail.points > FROM > user, > user_detail > WHERE > user.details = user_detail.id > AND user.id > 101 > AND user.language = 'en' > ORDER BY user_detail.points DESC > L

Help me optimize my query

2002-11-21 Thread Maximo Migliari
Im running the following query: SELECT user.nickname, user.id, user_detail.points FROM user, user_detail WHERE user.details = user_detail.id AND user.id > 101 AND user.language = 'en' ORDER BY user_detail.points DESC LIMIT 5; It basically lets me know the top 5 contributors to my website.