One of my tasks is to maintain our database, usually we have problems with a lack of performance when receiving reports and working with this database.
When I start looking for queries that our ERP transfer to the database, I see a lot of completely unnecessary query subqueries in the main queries. Since I am not a member of the developers who are the creators of the program we use, they do not really like me when I criticize their code and work. Let's say they do not consider my review as serious statements. So I ask you some questions about the subquery in SQL
Does subselect take much longer than other external connections?
Is there any blog, article, or anything where I have a subtask, it is recommended not to use?
How can I prove that if we avoid subselesct in the request, the request will be faster?
Our database server MSSQL2005
source
share