Last active
January 22, 2016 15:16
-
-
Save peterbe/845f21b535b378eb0d9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- oldest record is 2014-07-08 | |
select now(); | |
delete from raw_adi_logs where report_date < '2015-01-01'; | |
select now(); | |
delete from raw_adi_logs where report_date < '2015-06-01'; | |
select now(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- oldest record is 2014-08-18 | |
select now(); | |
delete from raw_adi where date < '2015-01-01'; | |
select now(); | |
delete from raw_adi where date < '2015-06-01'; | |
select now(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment