Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Ways to Achieve Query Optimization within the SQL forums, part of the Databases category; Hi, Some of the techniques for achieving optimization query are normalization, ER diagram. Can someone let me know some more techniques to achieve query optimization and also let me know ...
|
|||||||
|
|||
|
Ways to Achieve Query Optimization
Hi,
Some of the techniques for achieving optimization query are normalization, ER diagram. Can someone let me know some more techniques to achieve query optimization and also let me know the scenario or when to use the same. Regards, Joel |
| Sponsored Links |
|
|||
|
Re: Ways to Achieve Query Optimization
Hi,
Go through the following point for Query Optimizations :- 1. Use views and stored procedures instead of heavy-duty queries. 2. Try to use constraints instead of triggers, whenever possible. 3. Use table variables instead of temporary tables. 4.Try to use UNION ALL statement instead of UNION, whenever possible. 5. Try to avoid using the DISTINCT clause, whenever possible. 6. Try to avoid using SQL Server cursors, whenever possible. 7. Try to avoid the HAVING clause, whenever possible. 8. Try to restrict the queries result set by using the WHERE clause. 9.Use the select statements with TOP keyword or the SET ROWCOUNT statement, if you need to return only the first n rows. 10.Try to restrict the queries result set by returning only the particular columns . Thanks & Regard's Santosh Kumar |
| The Following User Says Thank You to reach_sks For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|