Results 1 to 5 of 5

Thread: Query Performance

  1. #1
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Query Performance

    Performance wise is there any difference between the following two?

    where a.x||a.y||a.z = b.x ||b.y||b.z

    and

    where a.x = b.x
    and a.y = b.y
    and a.z = b.z


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Query Performance

    How you use the first one ?


  3. #3
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: Query Performance

    Columns are of Vachar2 type. I used first type of query for generating four reports. It is working but s taking considerable time for generating output.


  4. #4
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Query Performance

    You mean to say ,you are compairing after string concatination ?


  5. #5
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Query Performance

    query performance point of u where 'a.x = b.x
    and a.y = b.y
    and a.z = b.z '
    is better than 'where a.x||a.y||a.z = b.x ||b.y||b.z'
    becasue || some times disables indexing


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact