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...


How do you optimize SQL queries ?

Answers were Sorted based on User's Feedback



How do you optimize SQL queries ?..

Answer / kumar srinivasalu

BY USING HINTS,
HASH JOINS,
PARTITION TABLES AND INDEXS,
RESERVE KEY INDEX,
BIT MAP INDEX,
COST BASED OPTIMIZATION,
Nested loops,full table scans,query rewrite with
materialisation views
BASED ON THIS WE OPTIMIZE THE SQL QUERIES.

Is This Answer Correct ?    26 Yes 1 No

How do you optimize SQL queries ?..

Answer / abhijit

Use query analyzer to see the execution path and find
bottlenecks such as full table scans for tables with huge
number of rows.

Make sure you use the indexed columns in where clause, this
can lead to a phenomenal jump in query execution speed.

Is This Answer Correct ?    11 Yes 0 No

How do you optimize SQL queries ?..

Answer / hutashan

Avoid implicit datatype conversion
Avoid using function on an indexed column
Avoid comparing column value with NULL
Outer Join
Use OR carefully

Always use NOT EXISTS instead of NOT IN


Use UNION ALL whenever possible (no implicit sorts)
UNION will sort the result set for each SELECT before
combining the final result set
Remove DISTINCT keyword from SELECT if UNION is used

Is This Answer Correct ?    6 Yes 0 No

How do you optimize SQL queries ?..

Answer / asr

Avoid the sub queries.
Where condition should be based on primary key and index,
use primary column for join.
Try to avoid more tables.
Use temp tabels.
Create procedure.

Is This Answer Correct ?    6 Yes 0 No

How do you optimize SQL queries ?..

Answer / shail

Use function based index.
Ex: you have a date column and a simple index on it.
maximum queries referring to this column of this table
are like trunc(date_column). Then the index on this column
will be ignored. For this you can have function based index
like trunc(date_column) on this column.
This will speed up your sqls.

Is This Answer Correct ?    2 Yes 0 No

How do you optimize SQL queries ?..

Answer / rupa

Most often, Databases have bad designs and are not
normalized. This can greatly affect the speed of your
Database. As a general case, learn the 3 Normal Forms and
apply them at all times. The normal forms above 3rd Normal
Form are often called de-normalization forms but what this
really means is that they break some rules to make the
Database faster.

What I suggest is to stick to the 3rd normal form except if
you are a DBA (which means you know subsequent forms and
know what you're doing). Normalization after the 3rd NF is
often done at a later time, not during design.

for more information go Through below link
http://www.serverwatch.com/tutorials/article.php/2175621

Is This Answer Correct ?    3 Yes 10 No

Post New Answer

More SQL PLSQL Interview Questions

What is thread join () in threading?

0 Answers  


How does pl sql work?

0 Answers  


what is cursor. write example of it. What are the attributes of cursor.

0 Answers  


I want to know the difference between A Record Type and a Table.

3 Answers   Thermotech,


What will be the output of the following String S = 1+2+"abc" S = ? String S1 = 1+2+"abc"+5+6 S1 = ?

1 Answers   ABC,


What is a dirty read sql?

0 Answers  


What are the sql aggregate functions?

0 Answers  


What is the advantage of nosql?

0 Answers  


What are predefined functions in sql?

0 Answers  


how to get a list of indexes of an existing table? : Sql dba

0 Answers  


Advantages and disadvantages of stored procedure?

0 Answers  


How do I debug a stored procedure?

0 Answers  


Categories