postgres last 3 months code example Example: last 6 months postgresql CURRENT_DATE - INTERVAL '6 months'