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