Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

Error while retrieving data in where condition (no replies)

$
0
0
Hi,

I had a INNODB table dcr with columns dated datetime, and cid as bigint
when I am giving the command:

SELECT * FROM dcr
WHERE customerid=546 -- AND cbid=794
AND DATEd BETWEEN '2013-12-01' AND '2013-12-05';

I get 5 records with all cbid = 794

but when I uncomment the and cbid = 794 and fire the above query I get only 2 records.

My question what are the causes of this problem, I think index could be the problem but I created the new table and recreated the index.

Thanks in Advance.

Viewing all articles
Browse latest Browse all 1957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>