SQL Usuń rekordy starsze niż 1 dzień
...
WHERE date < DATEADD(day, -30, GETDATE())
Zain
...
WHERE date < DATEADD(day, -30, GETDATE())