SQL SERVER 2012 Chapter Fourth joins the Joinのouter join, fully connects full joins, crosses Cross joins

Source: Internet
Author: User

Select <select list> from <the table want to being the "left" table> <left| right> [OUTER] JOIN <table you want to be the ' right ' table> on <join condition>

The table before the join can be seen as the left table, and then the table is the right table.

An external connection is essentially a containment. The records that are explicitly included depend on which side of the connection is used. The left OUTER join contains information from the table on the right side, and it comes from the side.

The commonly used usage is to find which records in one table do not match the records in another table .

For null values, two null is not equal. Null means "I don't know", and null and null comparisons are meaningless.

Full join returns all the table data. Is independent of the left and right order of the table.

Cross JOIN produces a Cartesian product. This multiplication is generally used to generate large amounts of test data.

SQL SERVER 2012 Chapter Fourth joins the Joinのouter join, fully connects full joins, crosses Cross joins

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.