DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 16

Thread: sql query tuning

Threaded View

  1. #3
    Join Date
    Nov 2002
    Location
    New Delhi, INDIA
    Posts
    1,796

    Re: sql query tuning

    Originally posted by hrishy
    why is the plan getting changed ?
    regards
    Hrishy
    The plan is changing because in the first querry you have used
    Code:
    AND (tptfbdr_a.codptf = 'CROSB')
    and in the next
    Code:
    AND (tptfbdr_b.codptf = 'WARTS')
    And because of this the access order of the table has changes as the table tptfbdr_b is some where at the bottom and tptfbdr_a is at the top in the from clause.

    Try using
    Code:
    AND (tptfbdr_a.codptf = 'WARTS')
    and see whats the plan.
    Last edited by adewri; 04-10-2003 at 12:05 PM.
    Amar
    "There is a difference between knowing the path and walking the path."

    Amar's Blog  Get Firefox!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width