Application Development 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: 

Select code

Former Member
0 Kudos

Hi all,

In my select statement my condition is where Status Inactive (INACT) is blank and Status is 'E*'.

Such that 'E*' INACT field contains all field that starts with letter E.

How can I code this?

Thank you.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Marc

Please do it this way.

<b>where status = ' '</b> "Inactive
   or    <b>status like 'E%'</b>. "E* i.e status which starts with E.

Above where condition is to extract records where status is inactive or status has values which start with E.

Kind Regards

Eswar

4 REPLIES 4

Former Member
0 Kudos

Hi Marc

Please do it this way.

<b>where status = ' '</b> "Inactive
   or    <b>status like 'E%'</b>. "E* i.e status which starts with E.

Above where condition is to extract records where status is inactive or status has values which start with E.

Kind Regards

Eswar

Former Member
0 Kudos

Select <something>

into <something>

from <something>

where inact like 'E%'.

former_member404244
Active Contributor
0 Kudos

Hi marc,

Select .....where inact like 'E%'.

it will solve ur problem.

Regards,

nagaraj

Former Member
0 Kudos

hi

good

here you have not mentioned from which table you r selecting the data and what is your internal table name so it is quite tough you give you the exact answer

you can try this wa

select incat and status field name from tablename into correcsponding fields of table internal table name where

INACT = SPACE AND status field name = 'E*'.

thanks

mrutyun^