1
I have the following Query:
SELECT * FROM folhapagamento_storages WHERE idFolhaParametro = '1' AND valor_min >= '1083.4' AND valor_max <= '1083.4'
Only that the return will always be 0, what would be doing wrong? What would be the correct logic?
In this case, you would need to return only track 1, as result, and come zeroed...
Similarly, the result is zero, in this condition
– Sr. André Baill
Looking better now your records really will not return anything to that your query. No minimum or maximum value adheres to your condition. Now, if you put one
OR
in place ofAND
between the values will return records.– Diego Souza