title: overflowed an int column. Maximum integer value exceeded
body: <p>Am trying to execute this query but it doesn't like it"it throws the following exception 
  "overflowed an int column. Maximum integer value exceeded."
  Not sure what am missing here</p>
  
  <pre><code>    select * from Schedwin.SEVT where 
  ltrim(Resid)=345032 and type=5 or (type = 4 and subactid = 4)
  or
  (TYPE = 0)and (USER2='02-Force OT')
  and ltrim(SEVT.t_start) &lt;=  1215208800 
  and ltrim(sevt.t_start) &lt;=  1215207800
  order by SEVT.TYPE
  </code></pre>
  
  <p>My bad, t_start data type is char so i modified my query like below and it works</p>
  
  <pre><code>    select * from Schedwin.SEVT where 
  ltrim(Resid)=345032 and type=5 or (type = 4 and subactid = 4)
  or
  (TYPE = 0)and (USER2='02-Force OT')
  and ltrim(SEVT.t_start) &lt;= '1215208800' 
  and ltrim(sevt.t_start) &lt;= '1215207800'
  order by SEVT.TYPE
  </code></pre>