Do not use * in select Statment
Use Exists instead of Sub Query
Use Proper join instead of subqueries
Use “Where” instead of “Having” a clause
Apply index on necessary columns
For user-defined stored procedures avoid prefixes like “sp_”
Apply UNION ALL instead of UNION if possible
Avoid query in a loop
Learn more