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 query

Former Member
0 Likes
420

Hi,

I need to write a select query that satisfies the condition for

mpobj,

inact

psort..

as well as the field mptyp can

be 'I' 'W' 'U'.

How to write the query...

Can we use

select......

and

mptyp in( 'I','W','U').

kindly help...

Plz help me in rectifying the error in the following query.

SELECT point psort mptyp

INTO (imptt-point, imptt-psort, imptt-mptyp)

FROM imptt

WHERE mpobj = v_equnr

AND inact <> 'X' " do not accept inactive meas. pt

AND psort LIKE '%'

AND mptyp IN ( 'U','I','W' ).

Thanks..

4 REPLIES 4
Read only

former_member186741
Active Contributor
0 Likes
395

SELECT point psort mptyp

INTO (imptt-point,imptt-psort,imptt-mptyp)

FROM imptt

WHERE mpobj = v_equnr

AND inact = 'X'

AND psort LIKE '%'

AND mptyp IN ('U','I','W' ).

endselect.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
395

Hi,

SELECT point psort mptyp

INTO (imptt-point, imptt-psort, imptt-mptyp)

FROM imptt

WHERE mpobj = v_equnr

AND inact 'X' " do not accept inactive meas. pt

AND psort LIKE '%'

AND mptyp IN ('U','I','W').

Read only

Former Member
0 Likes
395

SELECT point psort mptyp

INTO (imptt-point, imptt-psort, imptt-mptyp)

FROM imptt

WHERE mpobj = v_equnr

AND inact = 'X'

AND mptyp IN ( 'U','I','W' ).

Read only

former_member156446
Active Contributor
0 Likes
395

u can even build a range for mptyp..

but range might reduce the performance.