A buggy upcoming-renewals query
This PostgreSQL query should list active contracts ending in the next 90 days, but it returns contracts that ended last year. What is the bug?
SELECT account_name, end_date, arr FROM contracts WHERE status = 'active' AND end_date <= CURRENT_DATE + INTERVAL '90 days' ORDER BY end_date;
Discussion 0
Join free to post in the discussion.
Related questions
- Auto-renewal notice periodsCustomer Success Manager
- Calculate a renewal rateCustomer Success Manager
- Fewer seats after layoffsCustomer Success Manager
- What gross revenue retention measuresCustomer Success Manager
- What net revenue retention addsCustomer Success Manager
- Logo churn versus revenue churnCustomer Success Manager
- Turning MRR into ARRCustomer Success Manager
- What contraction meansCustomer Success Manager