cancel
Showing results for 
Search instead for 
Did you mean: 

Query-Select Item Code ending in 'NI'

Former Member
0 Kudos

How do I select an Item Code ending in 'NI'?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

SELECT * FROM OITM T0 WHERE REVERSE(T0.ItemCode) LIKE 'IN%'

Former Member
0 Kudos

Hey Thomas!

Hope all is good there!

Thanks for your help - like the "old" days!

Former Member
0 Kudos

Hey Dan! Indeed it is.

For the record, Atul's answer works just as well, but I included the REVERSE part because of some article that I read about wildcard search performance. Of course now I can't find the article and I'm afraid I may have just made that up!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Daniel,

Please check below query which will give you Item ending with 'NI'

SELECT T0.[ItemCode], T0.[ItemName] FROM OITM T0 WHERE T0.[ItemCode] LIKE '%NI'

Hope this help

--

--

Regards::::

Atul Chakraborty