About 10,400,000 results
Open links in new tab
  1. What is a SQL JOIN, and what are the different types?

    JOINs based on Operators. Depending on the operator used for a JOIN clause, there can be two types of JOINs. They are. Equi JOIN; Theta JOIN; 1. Equi JOIN : For whatever JOIN type …

  2. Can I use CASE statement in a JOIN condition? - Stack Overflow

    Apr 21, 2012 · A CASE expression returns a value from the THEN portion of the clause. You could use it thusly: SELECT * FROM sys.indexes i JOIN sys.partitions p ON i.index_id = …

  3. sql - Condition within JOIN or WHERE - Stack Overflow

    The question and solutions pertain specifically to INNER JOINs. If the join is a LEFT/RIGHT/FULL OUTER JOIN, then it is not a matter of preference or performance, but one of correct results. …

  4. SQL Server NOLOCK and joins - Stack Overflow

    The 2005 text talks about VIEWS. So if you do "from myview with (nolock)" then it says the nolock is propagated to all tables and views involved in myview (you could have 10 joins in there). Not …

  5. SQL Server Left Join With 'Or' Operator - Stack Overflow

    Nov 1, 2013 · Here is what I did in the end, which got the execution time down from 52 secs to 4 secs. SELECT * FROM ( SELECT tpl.*, a.MidParentAId as 'MidParentId', 1 as 'IsMidParentA' …

  6. sql - Using AND in an INNER JOIN - Stack Overflow

    Aug 31, 2017 · Again, B1 is just a nickname. Here is a good picture explaning joins. ON B1.ID = A1.ID-- This is the column that the 2 tables have in common (the relationship column) These …

  7. mysql - sql joins as venn diagram - Stack Overflow

    Dec 22, 2012 · Right outer joins act similarly to left outer joins except they preserve non matching rows from the right table and null extend the left hand columns. SELECT A.Colour, B.Colour …

  8. What is the difference between JOIN and INNER JOIN?

    Similarly with OUTER JOINs, the word "OUTER" is optional. It's the LEFT or RIGHT keyword that makes the JOIN an "OUTER" JOIN. However for some reason I always use "OUTER" as in …

  9. How can I do an UPDATE statement with JOIN in SQL Server?

    I need to update this table in SQL Server with data from its 'parent' table, see below: Table: sale id (int) udid (int) assid (int) Table: ud id (int) assid (int) sale.assid contains the correct

  10. sql - Optimizing multiple joins - Stack Overflow

    Jun 22, 2011 · Hence your joins to Body should be LEFT OUTER to meet that requirement. Unfortunately then, (if I'm not mistaken) the inner joins to Envelope could still eliminate some …

Refresh