cancel
Showing results for 
Search instead for 
Did you mean: 

I have this error in SQL instruction

HoffmanGuerra
Level 2
36209.png
36210.png
Hello community,

     I have this error  and I cann´t  solve it.

     The instruction is in the first image attached.


  Please, some One  can help me?
4 REPLIES 4

EmersonF
MVP
Hi, @Hoffman Guerra try it!
"[ID] = '"&[ItemData.ID]&"' AND [Status] not like 'OK'"​
​​See if this works for you, if this helps you mark as answered
Sr Cons at Avanade Brazil

VivekGoel
Level 10
Out of curosity, it seems like you are doing an exact match, and hence using "Not Like" is useless.

Probably you should considering "!= or <>" operator which would consume less memory.

EmersonF
MVP
Good observation! In fact, the best option would be to use negation <> ​​​​
Sr Cons at Avanade Brazil

HoffmanGuerra
Level 2
Hello guys,

        Thanks for your response, I changed to "<>" and it worked!