Actualmente tengo la siguiente consulta:
SELECT DISTINCT SQnet_Locations.DESCR FROM (((SQnet_TestValues INNER JOIN SQnet_TestDefinitions ON SQnet_TestValues.MEASURE_DT = SQnet_TestDefinitions.LAST_CHECK) INNER JOIN SQnet_Users ON SQnet_TestValues.USR_CODE = SQnet_Users.REC_CODE) INNER JOIN SQnet_Locations ON SQnet_TestDefinitions.PARENT_CODE = SQnet_Locations.REC_CODE) INNER JOIN SQnet_Measures ON SQnet_TestValues.MEASURE_ID = SQnet_Measures.REC_CODE WHERE SQnet_TestDefinitions.LAST_CHECK >= getdate()-1 AND SQnet_TestValues.TESTDEVICE IN ('4','5') AND SQnet_Locations.DESCR like '%VW270%' AND SQnet_Locations.IDENTIFIER like '%A%'"
En la condición getdate (-1) me gusstaria añadir tambien una hora concreta. Es decir, que sea mayor o igual que ayer a las 06:00.
Saludos y gracias!!