MySQL Forums
Forum List  »  General

Re: left jon returning wrong record count
Posted by: Harrison Fisk
Date: January 12, 2005 05:26PM

Hi,

Why do you think this is the wrong result? Nothing you have shown indicates why. If you have multiple matches in the agendatotal table, then you can get more rows than is in mavaodafone.

For example:

table 1 data:

1
2
3
4
5

table 2 data:
1
1

table 1 count(*) = 5
table 2 count(*) = 2
table 1 left join table 2 count(*)= 6

Perhaps you want to do a count(distinct) which would return to you 14626, though I don't know why you would want that.

Harrison Fisk, Trainer and Consultant
MySQL AB, www.mysql.com

Options: ReplyQuote


Subject
Written By
Posted
Re: left jon returning wrong record count
January 12, 2005 05:26PM


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.