MySQL Forums
Forum List  »  New in 4.1: Subqueries

Re: Wrong results when using LIMIT
Posted by: Felix Geerinckx
Date: September 28, 2005 05:44AM

Claudio Bardelle wrote:

> ... HAVING COUNT(UserId)>2 ...

Are you sure you don't want user.Id here (UserId being a column in your subquery for t1)?

(I think in complex queries it's always a good idea to fully qualify columns with table names or aliases).

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Views
Written By
Posted
4296
September 27, 2005 02:50AM
Re: Wrong results when using LIMIT
2680
September 28, 2005 05:44AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.