I am trying to make a query between a range of dates, and when I use the> = to today's date (11/26/2018) if it shows me, instead if I use only the = to the date of today it does not show me anything, when it is not logical because there is no data with a later date. I leave the code:
SELECT
substring(maquina_id,1,5),
count(distinct [rep].[id])
FROM [matLot]
LEFT JOIN [rep] on [matLot].[lot] = [rep].[id]
where [fechaEntrada] >= cast('26/11/2018' AS datetime)
group by substring([maquina_id],1,5)
order by substring([maquina_id],1,5)