Guest User

Untitled

a guest
Jan 23rd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. select `Date`, `Close Price`,
  2. round(avg(`Close Price`) over (order by `date` asc rows 19 preceding), 2)
  3. as '20 Day MA'
  4. from table1; -- this is my view
Add Comment
Please, Sign In to add comment