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

Re: Read to an internal table with Aggreegate Function.

Former Member
0 Likes
464

Hi,

I wanted to find the Maximum and Minimum value from an internal table for each shipment number.

without calling select statement in loop.

I pulled all the data into an internal table. and i tried to read the data. through sorting the record ascending and descending.. but.. i wanted to know.. whether there is any best method to find it..

Thanks & Regards

Guhapriyan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
439

Hi,

I think SORTING and reading the table is best solution in the given situation.

Regards,

Ravi

Note : Please mark all the helpful answers

3 REPLIES 3
Read only

Former Member
0 Likes
440

Hi,

I think SORTING and reading the table is best solution in the given situation.

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

Former Member
0 Likes
439

If you only want to find min & max values, you can use aggregate functions in select stmt as well...

Read only

Former Member
0 Likes
439

Hi,

You can use the ORDER BY clause in the select statement itself.

Refer the demo program :

<b>DEMO_SELECT_ORDER_BY</b>

Reward points to all helpful answers and close the thread if your question has been answered.

Regards,

Amit Mishra