About 6,850,000 results
Open links in new tab
  1. SQL JOIN where to place the WHERE condition? - Stack Overflow

    1. For INNER JOIN any condition can be in a WHERE instead of an ON as long as there is no intervening OUTER JOIN. 2. When moving a LEFT JOIN condition from an ON to a WHERE …

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

    The fact that when it says INNER JOIN, you can be sure of what it does and that it's supposed to be just that, whereas a plain JOIN will leave you, or someone else, wondering what the …

  3. What's the difference between INNER JOIN, LEFT JOIN, RIGHT …

    INNER JOIN gets all records that are common between both tables based on the supplied ON clause. LEFT JOIN gets all records from the LEFT linked and the related record from the right …

  4. LEFT JOIN vs. LEFT OUTER JOIN in SQL Server - Stack Overflow

    Jan 2, 2009 · A LEFT JOIN B A LEFT OUTER JOIN B A RIGHT JOIN B A RIGHT OUTER JOIN B A FULL JOIN B A FULL OUTER JOIN B A INNER JOIN B A JOIN B Also take a look at the …

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

    Nov 1, 2013 · Instead of one join with OR it turned into three joins. With each condition in a seprate join and a final join to get that one matching row from either first or second join.

  6. What is a SQL JOIN, and what are the different types?

    Theta-join is analogous to a special case of inner join where the on is a theta comparison on of a column from each. Some decades after Codd defined them some textbook (s) misdefined …

  7. c# - Join/Where with LINQ and Lambda - Stack Overflow

    The thing I'd like to point out though is that if you have appropriate foreign keys in your database, (between post and post_meta) then you probably don't need an explicit join unless you're …

  8. How can I delete using INNER JOIN with SQL Server?

    Sep 10, 2016 · I want to delete using INNER JOIN in SQL Server 2008. But I get this error: Msg 156, Level 15, State 1, Line 15 Incorrect syntax near the keyword 'INNER'. My code: DELETE …

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

    This was an example, but the point is as Eric said in How can I do an UPDATE statement with JOIN in SQL Server?. You need to add an UPDATE statement at first with the full address of …

  10. sql - How to do join on multiple criteria, returning all combinations ...

    May 28, 2014 · SELECT WeddingTable, TableSeat, TableSeatID, Name, Two.Meal FROM table1 as One INNER JOIN table2 as Two ON One.WeddingTable = Two.WeddingTable AND …