Application Development 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: 

Performance

Former Member
0 Kudos

Hi gurus,

i want to know which is performed better

  • SELECT VBELN

FKART

FKTYP

VBTYP

WAERK FROM VBRK INTO TABLE IT_VBRK WHERE FKTYP = '736738' ORDER BY VBTYP.

OR

  • SELECT VBELN

FKART

FKTYP

VBTYP

WAERK FROM VBRK INTO TABLE IT_VBRK WHERE FKTYP = '736738' .

SORT IT_VBRK BY I_VBTYP.

Regards

1 ACCEPTED SOLUTION

former_member195383
Active Contributor
0 Kudos

2nd one will be better..

coz in the first one...the select query ll take longer time...as u are doing an additional task of sorting....

Reward points...if the ans if helpful

Regards

Rudra

Edited by: Rudra Prasanna Mohapatra on Jun 18, 2008 9:24 AM

4 REPLIES 4

former_member195383
Active Contributor
0 Kudos

2nd one will be better..

coz in the first one...the select query ll take longer time...as u are doing an additional task of sorting....

Reward points...if the ans if helpful

Regards

Rudra

Edited by: Rudra Prasanna Mohapatra on Jun 18, 2008 9:24 AM

Former Member
0 Kudos

2ed select is better

Edited by: S.r.v.r.Kumar on Jun 18, 2008 12:53 PM

Former Member
0 Kudos

Hi,

Second select query is better because in the first one sorting has been done at the DATABASE level so it will put more load on the database wheraeas second sorting is at internal table.

Hope it helps you.

Reward if helpful.

Former Member
0 Kudos

thank you