cancel
Showing results for 
Search instead for 
Did you mean: 

Error Code: 21, SQL State: QFA13] SQL Anywhere Error -1001013:

Former Member
5,348

I executed the below mention query ,

select *
  from ABCD 
 where DATETIME_ID >= '2013-07-16 20:30'
   and DATETIME_ID < '2013-07-16 21:00'
   and AAT = '2'
   and EVENT_NUMBER = '2'
   and VENDOR = 'Airtel'
   and HIERARCHY_3 = 'TE0040962'
   and HIERARCHY_1 = 'TE0040962-C'
   and CAUSE_CODE = '12'
   and SUBCAUSE_CODE = '107'

it is throwing a error as " "[Error Code: 21, SQL State: QFA13] SQL Anywhere Error -1001013: Invalid data type comparison in predicate (rawview.CAUSE_CODE = '12')""

the data type of "CAUSE_CODE" and "SUBCAUSE_CODE" are "smallint"

can anyone have any idea why the above error is coming ?

Thanks in advance. Sam

Accepted Solutions (0)

Answers (1)

Answers (1)

Breck_Carter
Participant
0 Kudos

Try this: CONVERSION_MODE option

...I confess, I didn't read very far, my head exploded 🙂