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 ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which sql most popular?

1025


What is view explain with example?

988


Do stored procedures prevent sql injection?

1011


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

1102


What are field types?

1049


What is clustered and nonclustered index in sql?

982


What are the various levels of constraints?

1167


Does oracle use sql?

984


What is the difference between nested table and varray?

1045


Why having clause is used in sql?

1017


What are primary key and foreign key and how they work?

1015


What does closing a cursor do?

1370


Can you inner join the same table?

1034


what are date and time data types? : Sql dba

1021


what are the advantages of using stored procedures? : Sql dba

1145