Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要按几列排名;
ORDER_SEQ = RANK() OVER(PARTITION BY A.ORDER_ID, A.ORDER_NAME, A.START_DT_TM ORDER BY A.START_DT_TM)
问题是我需要分区中的第三个参数仅按日期而不是日期时间。
有什么想法吗?
谢谢
您可以使用 TRUNC 截断日期。
TRUNC(a.start_dt_tm,'dd')