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

sql

Former Member
0 Likes
498

hi

in sql select statement if i want to select a single material from the division A but i do not want to include the whole division A.

for example: division = 'EEQA'. append division. then in sql select : div in division. but i only want to pick 1 of the material from division A.

thanks

4 REPLIES 4
Read only

suresh_datti
Active Contributor
0 Likes
477

You can use SELECT SINGLE if you do know the entire key else you have to use the SELECT UP to 1 ROWS option.

~Suresh

Read only

former_member194669
Active Contributor
0 Likes
477

Hi,


select single * from mytable into table i_itab where division like '%A'.

aRs

Read only

0 Likes
477

hi,

you got me wrong.

i want to select 1 material where the material in the division that i want to exclude.

i cannot use single or up to 1 row as the select statement also involve other division and other requirement.

Read only

0 Likes
477

Then you cannot retrieve with a SELECT statement.. you have to manipulate teh data in an itab..

~Suresh