Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


My SQL is not performing well. Describe how will you fine
tune it?



My SQL is not performing well. Describe how will you fine tune it?..

Answer / akbar

Use EXPLAIN to list out the access paths of several
different codes you come up with and choose the path that
got executed within the least time.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More DB2 Interview Questions

List out the three types of page locks that can be held.

0 Answers  


How do you do the EXPLAIN of a dynamic SQL statement?

2 Answers  


What happens to the PLAN if index used by it is dropped?

1 Answers  


Hi i need to write a query on the following requirement. SELECT COMM_TEXT INTO :WS_MIKM_COMM_TEXT FROM MPIPROD.MIKMV01 WHERE ACCOUNT_NO = :WFD_ACCOUNT_NO AND (SUBSTR(COMM_TEXT,1,39) = :WS_COMMENT_TEXT AND SUBSTR(COMM_TEXT,47,14) = :WS_DENY_DESC) OR (SUBSTR(COMM_TEXT,1,39) = :WS_COMMENT_TEXT) The above query is to be modified. The requirement is if both the fields are equal then that has to be given priority. In the above query if it satisfies any one it comes out without checking if both being equal is possible.

1 Answers  


what is the use of bind parameter, Replace?

5 Answers   IBM,


How is deadlock resolved?

0 Answers  


How do you concatenate the firstname and lastname from emp table to give a complete name?

0 Answers  


What value the host varible will contain , if null indicator value is -2 ? Will it contain the truncated value or nothing will move ?

3 Answers   Cap Gemini,


What is table space in db2?

0 Answers  


My sql statement select avg(salary) from emp yields inaccurate results. Why?

0 Answers  


Is DECLARE TABLE in DCLGEN necessary? Why it used?

3 Answers  


How will you return the number of records in table?

0 Answers  


Categories