About 194,000 results
Open links in new tab
  1. sql server - Outer Apply vs Left Join Performance - Database ...

    Aug 27, 2014 · I am Using SQL SERVER 2008 R2 I just came across APPLY in SQL and loved how it solves query problems for so many cases, Many of the tables I was using 2 left join to get the result, I …

  2. How does different forms of EXISTS () affect performance in MS Sql ...

    Mar 7, 2024 · There's always the "case by case" aspect of a question like this, but in general, is there any performance gain from using the second implementation of EXISTS() over the first one?

  3. sql server - Best practice between using LEFT JOIN or NOT EXISTS ...

    Nov 14, 2015 · Is there a best practice between using a LEFT JOIN or a NOT EXISTS format? What is benefit to using one over the other? If none, which should be preferred? SELECT * FROM tableA A …

  4. Colleague says to never use an OR statement in SQL, is this true?

    Oct 16, 2020 · My colleague now responsible for SQL development says that I should never use an OR statement because it will mess up the query optimizer and ignore table indexes producing slow …

  5. sql server - Join condition vs. WHERE...does it make a performance ...

    Oct 13, 2021 · Can it be detrimental to performance if I add additional conditions in the where clause rather than the join clause; or is this a part which typically gets simplified and handled equally in the …

  6. sql server - How can I tell WHY an insert on a certain table is slow ...

    6 I can say what I am looking for when analyzing the performance of a query. Maybe it helps. analyze query execution plan and check for index scans, table scans, usage of convert_implicit functions for …

  7. SQL Server: Performance Insert Into vs Select Into - Database ...

    Feb 14, 2019 · We conducted performance testing, and seems select into is slightly faster. What are good principles in figuring which is faster and why? I would think Microsoft would optimize to make …

  8. sql server - Why OFFSET / FETCH causing Performance issues with …

    Mar 13, 2024 · Explore related questions sql-server query-performance sql-server-2019 offset-fetch See similar questions with these tags.

  9. sql server - What's better for large changes to a table: DELETE and ...

    Nov 17, 2011 · For me it is easier to just delete all the rows and insert new ones, but if this is going to fragment the table and indexes and impact performance then I would prefer to make updates where …

  10. sql server - Performance gap between WHERE IN (1,2,3,4) vs IN (select ...

    Mar 13, 2017 · 3 I seem to be having a huge performance gap between using hard coded values for a SELECT IN, vs a STRING_SPLIT. The query plans are identical except for the last phase where the …