title: Arithmetic overflow occurred
body: <p>I am trying to run below statement in Sybase 15.5, but I am getting "Arithmetic overflow occurred " error: </p>
  
  <pre><code>declare @TradeId BIGINT
  select @TradeId=(20170103-19950000)*10000
  select @TradeId
  </code></pre>
  
  <p>Please advise anything I am doing wrong.</p>