I have a table which is a combination of two sales tables created within two retail outlets. Tot number of records at present stands at just over 96000 records. The date fields of the original tables are not in a format useable in MySQL so I insert an epoch value into the DATED field based on the date field of the original tables.
First Example.
Second Example
I should mention that the data within the table ranges from 20/9/1998 - 25/3/2006 so bothe quries fall within the data range.
Why do I get a very large row count from the second query?
Keith
First Example.
Code:
Range 1/1/2000 - 31/1/2006
SELECT * FROM `sales` where DATED>=946771200 and DATED<1138752000
total - 69215
Code:
Range 1/1/1999 - 31/1/2006
SELECT * FROM `sales` where DATED>=915235200 and DATED<1138752000
total - 4294967295
Why do I get a very large row count from the second query?
Keith