COL_A COL_B COL_C
001 20110513 30
001 20110512 20
001 20110511 40
.
.
002 20110513 50
002 20110512 70
002 20110511 40
.
.
.
데이타가 이런식으로 들어가 있어요
데이타 건수는 날짜별로 한 2백만건 정도 되구요
결과값은 기준은 COL_A별로
001 평균값(001 로우5개합한값) 평균값(001 로우10개합한값) 평균값(001 로우15개합한값)
002 평균값(002 로우5개합한값) 평균값(002 로우10개합한값) 평균값(002 로우15개합한값)
을 구하고 싶어요
평균값은 ROW 5개를 합한값, 10개를 합한값 15개를 합한값의 평균을 구해야 하는데
잘안되네요 여러고수님들 쿼리 좀 도와주세요^^ |