2과목) 다음 SQL 실행 결과로 가장 적절한 것은?

SQLD · 0pt
다음은 'store' 테이블이다.

storeyearmonthsales_amount
A2026012000
A2026021000
A2026032000
A2026043000
B2026012000
B2026024000
B2026032000

---


SELECT SUM(sales_amount)
FROM (SELECT store.*,
LAG(sales_amount) OVER(PARTITION BY store
ORDER BY month) AS VAL
FROM store)
WHERE sales_amount < VAL;