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)
問題は、パーティションの 3 番目の引数が日時ではなく日付のみである必要があることです。
何かご意見は?
ありがとう
TRUNC を使用して日付を切り捨てることができます。
TRUNC(a.start_dt_tm,'dd')