![]() |
1
2
使用聚结。它选择第一个非空值。
如果相反,您希望使用两个日期中较大的一个。然后使用最大值()。
|
![]() |
2
0
我正在将您的数据格式解释为mm-dd。是否应该在输出中翻转3和2,第二个在第四个之后? 以下内容有效吗? 选择id,reminder_at,updated_at,greatest(coalesce(reminder_at,'1/1/1900'),coalesce(updated_at,'1/1/1900'))作为测试顺序中greatest(coalesce(reminder_at,'1/1/1900'),coalesce(updated_at,'1/1/1900')的测试列; |
|
Johnny T · 基于当前值的SQL合并表[重复] 6 月前 |
![]() |
Peter Schofield · 类型转换Postgresql 7 月前 |
![]() |
Kevin Smeeks · Pyspark JDBC分区读取 7 月前 |
![]() |
Andrus · 如何在sql中查找第二个匹配项 7 月前 |