【发布时间】:2019-08-26 03:42:34
【问题描述】:
我有几十万个条目的以下列
date_for_trx , date_user_creation , order_number , email
1554377107 . 1554377105 on234524 . 321@gmail.com
1554377000 . 1354377107 on876568 . xyz@gmail.com
1554377105 . 1254377107 on777612 . 123@gmail.com
1554377107 . 1551177107 on123345 . abc@gmail.com
...... ....... ....... ........
我需要提取 date_for_trx (-) 和 date_user_creation 之间的差异 >=12 个月的电子邮件
因此,date_for_trx 为 21/03/2019 且 date_user_creation 为 21/03/2018 或更早的电子邮件
有人可以帮忙吗? 谢谢
我在这里尝试了其他问题的答案,但完全可以到达那里。
我总是得到的是两个时间戳之间的时间计算,但可以根据该计算提取电子邮件 12 个月
【问题讨论】:
-
你说的计算在哪里?我在你的问题中没有看到这一点。
-
我在示例数据中看不到任何时间戳。
标签: database postgresql timestamp extract