The difference (in very simplistic terms) is Budget v Cash flow. Think like a business - I might need to borrow funds to cover all my costs this year, but when I make a sale that's still cash coming in.
See the graph here - http://www.slate.com/id/2299845/. "you will also see some spikes in revenue after borrowing is maxed out. This can be attributed to many things - an influx of tax revenue, profits from the Federal Reserve's holdings, and the general movement of funds and debt between accounts."
Also, if the funds you borrow are sitting in an account while you wait to pay future bills, you may have a deficit but a positive cash balance.
(Of course, it's not quite that simple. Borrowings in a business are normally a liability on a balance sheet, though the interest and repayments would affect the budget.)
See the graph here - http://www.slate.com/id/2299845/. "you will also see some spikes in revenue after borrowing is maxed out. This can be attributed to many things - an influx of tax revenue, profits from the Federal Reserve's holdings, and the general movement of funds and debt between accounts."
Also, if the funds you borrow are sitting in an account while you wait to pay future bills, you may have a deficit but a positive cash balance.
(Of course, it's not quite that simple. Borrowings in a business are normally a liability on a balance sheet, though the interest and repayments would affect the budget.)