강의

멘토링

커뮤니티

Inflearn Community Q&A

ysko3467's profile image
ysko3467

asked

Level up your query skills (advanced T-SQL queries) with SQL Server consultants

Understanding the Frame of the Window Function

RANGE에 대해서 질문드립니다

Resolved

Written on

·

238

0

이전 수업에서 RANGE가 기본이라고 적혀 있었는데 FRAME단에 RANGE로 BETWEEN을 하는 것과 ORDER BY까지만 선언하는 것과 차이가 있나요?

sql

Answer 1

0

sqlexpert님의 프로필 이미지
sqlexpert
Instructor

안녕하세요, ysko님. ORDER BY는 Windows 내의 데이터 순서(시계열) 정의하고 RANGE/ROW는 Frame의 범위를 정의한다고 생각하시면 이해에 도움이 되실겁니다. OrderYear의 경우 RANGE/ROW의 차이점도 알 수 있습니다.

김정선 드림

ysko3467's profile image
ysko3467

asked

Ask a question