I have the following question, I need to filter a query on sql server by date range and time range, for this I made the following query:
SELECT * FROM AHUMA00016 WHERE
Fecha BETWEEN '28/5/18' AND '29/5/18' AND Hora BETWEEN '09:13' AND '09:28';
but this returns me in the range of dates, dates different from those specified in the range, it occurred to me that I could do a query by time range over the specified date range, I do not know how to do this very well to see if suddenly someone could help me with it, thank you very much!
Postscript: The idea would then be to implement the query in Laravel, but first I would like to clarify how to make the query correctly.
Structure of the table:
Some of the results that it throws: