MySQL Forums
Forum List  »  Newbie

Re: Problem with count
Posted by: Claude Martin
Date: April 03, 2005 01:38PM

> This sql returns count(a.prospect) = 1 and
> count(b.sale) = 1 when it should return 4 and 1.
> What am I doing wrong?

you cant use JOIN to "join" two queries. use this only if you want to join tables.
use UNION instead!

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
April 03, 2005 06:22AM
Re: Problem with count
April 03, 2005 01:38PM


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.