首页 > 解决方案 > 月间隔 Postgres

问题描述

我错过了什么?

所以基本上 project_status 在一列和持续时间在下一列

我尝试了以下错误 -

SELECT
project_status
,extract(month from max(closed_date)-max(open_date)) as duration
FROM
    "analytics"."projects"
where projects_status = 'closed' 
limit 500

标签: postgresqlintervals

解决方案


推荐阅读