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.
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.