WHERE CAST(CAST(FECHA AS INTEGER) AS DATETIME) = '20061215'
WHERE FECHA BETWEEN '20061215 00:00:00.000' AND '20061215 23:59:59.999'