ERROR: arithmetic overflow error converting expression to data type smalldatetime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bhagyada123
    New Member
    • Apr 2014
    • 1

    #1

    ERROR: arithmetic overflow error converting expression to data type smalldatetime

    this error occure while I am executing my query like:

    Code:
    select EMPNAME,A.EMPCODE,B.MACHINEID,EMPTYPE,PUNCHTIME,punchdate,sum(Amount)'Total Amount'  
    from B,A,C 
    where A.EMPCODE=C.empcode 
    and  C.machineid=B.machineid 
    and ( punchdate >=28/08/2012 and punchdate<=30/08/2012  )
    and ( punchtime>=08:00 and punchtime<=18:00 )
    and A.EMPCODE LIKE  '%'  
    group by EMPNAME,A.EMPCODE,B.MACHINEID,EMPTYPE,PUNCHTIME,PUNCHDATE
    Last edited by Rabbit; Apr 23 '14, 04:03 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    This is not VB.Net code. This is SQL code. Let us know what DBMS you're using and we will move it to the correct forum.

    Please use code tags when posting code or formatted data.

    Comment

    • Priyakara
      New Member
      • Oct 2014
      • 1

      #3
      This is related to the column in your database with smalldatetime.
      so convert that when displaying the results.

      Comment

      Working...