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

Fetching data with certain condition..

Former Member
0 Likes
524

Hello,

I want to fetch data from custom table such that field ZNAME of table ZCUSTOM does not contain first three characters as 'OKL' or 'okl' .

How can I do this ?

Please help.

Regards,

Jainam.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
495

Give the statement

select * from zcustom where zcustom-zname = not ( 'okl%' and 'OKL%)'.

This statement should work for you bro.

Regards,

Ankur

3 REPLIES 3
Read only

Former Member
0 Likes
495

Hi

Try to use LIKE option:

 select * from ZCUSTOM where not ZNAME like 'OKL%'
                                         and not ZNAME like.'okl%'
ENDSELECT.

Max

Read only

Former Member
0 Likes
495

Do you also want to exclude 'Okl'?

Rob

Read only

Former Member
0 Likes
496

Give the statement

select * from zcustom where zcustom-zname = not ( 'okl%' and 'OKL%)'.

This statement should work for you bro.

Regards,

Ankur