postgresql - 月间隔 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
解决方案
推荐阅读
- android - Android Kotlin AutoCompleteTextView 项目在单击时显示整个项目对象
- python - 使用 Botton 导入 CSV
- javascript - 将第 4 列添加到数组并使新列 = 前 3 列的连接值
- aws-lambda - 502 Bad gateway internal server error lambda serving binary files
- php - PHP 添加按钮以下载 csv 文件
- python - 按钮不更新 tkinter 中的变量
- ios - tableview 第四中的collectionview 不起作用(swift)
- python - 如何在 Python 中将字节从 PDF 转换为字符串?
- google-cloud-platform - Twilio 将错误作为无法访问的目标手机
- python - 再次开始/循环时删除时间戳