Answers for "Aggregate window functions with an ORDER BY clause require a frame clause"

0

Aggregate window functions with an ORDER BY clause require a frame clause

select [Date],sum([Count]) over(order by [Date] ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) 
from (SELECT CONVERT(date, u.CreateDate) as [Date], Count(UserId) as [Count] 
      FROM User as u
      GROUP BY CONVERT(date, u.CreateDate)
      ) x
order by 1
Posted by: Guest on March-01-2022

Code answers related to "Aggregate window functions with an ORDER BY clause require a frame clause"

Browse Popular Code Answers by Language