Originally posted by Mnemonical
Sorry, it's dat_sale... dat_venda appears because I changed manually, I dont want you to know my table models....
Wow. Must be pretty top secret, huh, that you can't post a table definition.

Firstly, stop relying on implicit conversion of dates -- use data format pictures every time.

Secondly, you have either hit a bug, or you are giving us wrong information.