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

Query

Former Member
0 Likes
905

Hi,

I have a simple doubt plz resolve.

I need to select all from table called V_CMP_JOIN and put in another internal table where need to include 2 conditions

One is objvers it should be ‘A’ and that’s working fine.

And one more condition is :- one more field called compid I need to display whose compid starts with Z or Y (custom queries).

so i tried like this.

Select * from V_CMP_JOIN into table it_qryobj and objvers = 'A' and compid like ‘%Z’.

But it is not displaying all start with Z …am I using correct syantax?

Thanks,

Vijaya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
870

give as LIKE 'Z%'

6 REPLIES 6
Read only

Former Member
0 Likes
871

give as LIKE 'Z%'

Read only

Former Member
0 Likes
870

Select * from V_CMP_JOIN into table it_qryobj and objvers = 'A' and compid like ‘Z%’.

regards

shiba dutta

Read only

Former Member
0 Likes
870

hi

try this...

Select * from V_CMP_JOIN into table it_qryobj where objvers = 'A' and compid like ‘Z%’.

Message was edited by:

Premalatha G

Read only

0 Likes
870

Thanks it is working fine.

Read only

Former Member
0 Likes
870

hi vijaya,

i think it should be

Select * from V_CMP_JOIN into table it_qryobj and objvers = 'A' and compid like ‘Z%’.

Reward points if helpful

Cheers,

PRash

Read only

Former Member
0 Likes
870

Hello Vijaya Salagundi,

<b>compid like ‘%Z’</b> means it will look for those whose compid ends with charcter 'Z'.

For your requirement use <b>compid like ‘Z%’</b>, this will look for those whose compid's starts with 'Z'.

Reward points if helpful

Regards

--

Sasidhar Reddy Matli