Hãy thử điều này:
SELECT * FROM LoginHistory L
WHERE USER_ID = '[email protected]'
AND L.TIMESTAMP < (SELECT MAX(TIMESTAMP) FROM LoginHistory WHERE USER_ID = '[email protected]');
Hãy thử điều này:
SELECT * FROM LoginHistory L
WHERE USER_ID = '[email protected]'
AND L.TIMESTAMP < (SELECT MAX(TIMESTAMP) FROM LoginHistory WHERE USER_ID = '[email protected]');