Вы пытались выполнить запрос не являющийся частью агрегатной функции
SELECT a.staff,a.logiodate,a.LogInTime,a.LogOutTime,a.nodeid FROM (SELECT NGAC_USERINFO.username AS Staff, Int([Logtime]) AS LogIODate, Format(Min(NGAC_LOG.logtime),"h:m:s") AS LogInTime, Format(Max(NGAC_LOG.logtime),"h:m:s") AS LogOutTime,nodeid FROM NGAC_LOG INNER JOIN NGAC_USERINFO ON NGAC_LOG.userid = NGAC_USERINFO.userid WHERE ( NGAC_LOG.nodeid=1 AND ((Int([logtime])) Between #21/09/2016# And #21/09/2016 23:59:59#)) GROUP BY NGAC_USERINFO.username, NGAC_LOG.Userid, Int([Logtime]), Int([Logtime]), nodeid ) AS A INNER JOIN NGAC_TERMINAL ON A.nodeid=NGAC_TERMINAL.nodeid group by staff,logiodate,LogInTime,LogOutTime,a.nodeid having LogInTime>'9:45:00'
Что я уже пробовал:
пожалуйста, помогите
заранее спасибо