Ostatnie 2 minuty SQL Server
SELECT DATEADD(minute, -30, GETDATE())
Kirk-Patrick Brown
SELECT DATEADD(minute, -30, GETDATE())
DATEADD(day, -2, GETDATE()) /* last 2 days*/