Skip to Content
author's profile photo Former Member
Former Member

Performance

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Jun 18, 2008 at 07:22 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 07:22 AM

    2ed select is better

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 07:27 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 07:37 AM

    thank you

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.