In a SQL Statement - How do I get total for rows up to this point?

In a SQL Statement - How do I get total for rows up to this point?  (SQL Server 2017)

What I have
A view that shows ID  and Amt  (this will be sorted in ID order)

What I want
is a SQL Statement that can be used in a View or Proc that will give me the Total Amount to this point.
So as you can see below -
row 1 --> Tot_Amt = Amt of row 1
row 2 --> Tot_Amt  = Amt of  row 1 & 2
row 3 --> Tot_Amt  = Amt of  row 1 to 3

What the outcome should look liket
ID    Amt             Tot_Amt
1        2                       2
2        2                     4      
3        2                     6
4        2                     8
5        1                     9
6        1                     10
7        0                     10      
8        0                     10
9        0                     10
10        0                     10

Thanks in advance for any hlep
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
Try this:

  SUM(amt) OVER (ORDER BY id) AS RunningTotal

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LJGAuthor Commented:
Thanks so Much - That worked
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.