Home Forums SQL Server 2017 SQL Server 2017 - Development How to avoid using operator when there are different values on two tables ? Reply To: How to avoid using operator when there are different values on two tables ?

  • wrote:

    Using joins to compare columns by priority among the table. For example, left join returns all values from the first table and null value for the not-matched records from the second table. Similarly, we can use right join, inner join, full join and self join as per our requirements.

    Smells like a precursor to SPAM.  You copied a paragraph from Example 2 of the article at the following link.  Or should I say your spam-testing-bot did?

    https://www.geeksforgeeks.org/how-to-compare-columns-in-two-different-tables-in-sql/

     

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)