, 나는이 쿼리 건너 온 :오라클 웹 로그 분석 날짜 범위
select an_id,
a_date,
min(a_date) over (
partition by an_id, trunc(a_date)
order by a_date
range between (2.5/24) preceding and (2.5/24) following
) mn,
max(a_date) over (
partition by an_id, trunc(a_date)
order by a_date
range between (2.5/24) preceding and (2.5/24) following
) mx
from a_table
나는이이 분을 찾습니다 믿고 최대가 올라가는 2.5 시간 이내에 an_id
및 a_date
을 부여.
제 질문은 a_date
(날짜)와 2.5/24
(숫자) 사이의 비교를 어떻게하고 며칠, 몇 개월 또는 몇 년 동안 수정할 수 있습니까?
HH : MM : 당신은 HH를 의미 ... SS = 시간, 월, 초 : MI : SS –