intervals_sql delete