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

Select code

Former Member
0 Likes
581

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
Read only

Former Member
0 Likes
546

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
Read only

Former Member
0 Likes
547

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

Read only

Former Member
0 Likes
546

Select <something>

into <something>

from <something>

where inact like 'E%'.

Read only

former_member404244
Active Contributor
0 Likes
546

Hi marc,

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

it will solve ur problem.

Regards,

nagaraj

Read only

Former Member
0 Likes
546

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^