Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

comparision parameter

former_member611341
Participant
0 Likes
665

may be this sound silly for u...

I need to get all customers starting with 'K' from KNA1

select kunnr from kna1 where matnr <b>??</b> ' K* '

what shud be the comparision parameter in select statement.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
646

select kunnr from kna1 where kunnr <b>LIKE</b> ' K<b>%</b> '

6 REPLIES 6
Read only

Former Member
0 Likes
647

select kunnr from kna1 where kunnr <b>LIKE</b> ' K<b>%</b> '

Read only

0 Likes
646

thanks...very much

i tried LIKE K* ...but didnt worked

Read only

0 Likes
646

for wildacrd search in the where clause of a SELECT you have to use % & not *

~Suresh

Read only

0 Likes
646

i used after SRNIVAS told me...

intitally i was trying with 'k*'....

thanks srinivas and others too for quick response.....

Read only

former_member611341
Participant
0 Likes
646

thread closed

Read only

Former Member
0 Likes
646

select kunnr from kna1 where matnr+0(1) eq ' K'