MySQL Forums
Forum List  »  General

select count(id) < date != select count(id) < max(id)
Posted by: Cameron Beattie
Date: January 17, 2015 01:50PM

Could someone help me understand why the count is 1799804 on one query and 591331 on another. I would expect the count to be the same.

select count(radacctid) from radius.radacct where AcctStartTime < '2010-03-01';
591331
select max(radacctid) from radius.radacct where AcctStartTime < '2010-03-01' ;
103366506
select count(radacctid) from radius.radacct where Radacctid<103366506;
1799804

Options: ReplyQuote


Subject
Written By
Posted
select count(id) < date != select count(id) < max(id)
January 17, 2015 01:50PM


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.