Guest User

Untitled

a guest
Jun 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. SELECT row_number() over (order by year desc) as [S.No],
  2. SUM([values]) as Total, year
  3. FROM [table]
  4. GROUP BY Year
Add Comment
Please, Sign In to add comment