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

Query doubt..

Former Member
0 Likes
304

Hello,

I have custom table as follows:

KEY-SOLE

K1 - A

K1 - B

K2 - A

K2 - C

K3 - C

K4 - D

Now I want to write a query which will select all unique SAP values in internal

table such that output will be:

A

B

C

D

Regards,

Rajesh.

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
284

Hi Rajesh,

hmm.

If it is a database table, you need to SELECT DISTINCT ...

If it is internal table,

you may INSERT all records into an other internal table with UNIQUE KEY <sole?>

Regards,

Clemens

1 REPLY 1
Read only

Clemenss
Active Contributor
0 Likes
285

Hi Rajesh,

hmm.

If it is a database table, you need to SELECT DISTINCT ...

If it is internal table,

you may INSERT all records into an other internal table with UNIQUE KEY <sole?>

Regards,

Clemens