I'm having a problem filtering a query under the following conditions: I have the Date field and I have the field time both in varchar, when I try to do the query like this: ex:
select Serial, Latitude,Longitude,Data,Hora from [CheckPoint]
where Data BETWEEN '20150417' and '20150418'
and Serial= '120904'
and Hora BETWEEN '10:00' and '10:00' order by Hora
the query returns me null; would you have any possibility of manipulating those fields in varchar? If these date and time fields were of type datetime it would certainly make the query query much simpler.