Table Ciclos
:
I have the date 2018-07-05
How can I put a query between the ranges of CiDtIni
and CiDtFim
according to the date above?
I had informed a query in the comments tab that I believe is what you need. Just use BETWEEN
to work with range dates.
SELECT *
FROM Ciclos
WHERE dataInformada BETWEEN CiDtIni AND CiDtFim