Hi, I'm working with SQL 14, and I want to join two columns one is Date and the Other Time, I've tried several ways but none of them I'm concerned, I mean they work or join the columns but when I do a query I do not know The change is reflected.
SELECT Planta, Fecha FROM (
SELECT Planta, CAST(CONVERT(varchar(10), Fecha) +' '+ CONVERT(varchar(11),
Hora) AS datetime) AS Fecha
FROM dbo.tblHideUtilizationJDE
WHERE Fecha BETWEEN '2017-07-23 06:00:00.000' AND '2017-07-26 05:59:59.000'
GROUP BY Planta, Fecha