3
I had informed a query in the comments tab that I believe is what you need. Just use the BETWEEN
to work with date range.
SELECT *
FROM Ciclos
WHERE dataInformada BETWEEN CiDtIni AND CiDtFim
3
3
I had informed a query in the comments tab that I believe is what you need. Just use the BETWEEN
to work with date range.
SELECT *
FROM Ciclos
WHERE dataInformada BETWEEN CiDtIni AND CiDtFim
In the comment you posted select * from Ciclos where dataInformada between CiDtFim AND dataInformada
, is not wrong? I was trying to understand, and now that you posted different, this yes I understood.
@RBZ in the comment was typo!
I got it! Worse is that it has 3 votes the comment. You can see the attention of those who voted! rs
Browser other questions tagged sql-server
You are not signed in. Login or sign up in order to post.
select * from Ciclos where dataInformada between CiDtFim AND dataInformada
– Marconi
select * from Ciclos Where dataInformada between ciDtIni and Cidtfim
– Reginaldo Rigo