SQL Server Connection Query jion

Source: Internet
Author: User

Inner join On/join on inner join unmatched row does not return data


Left join on outer join returns all matching rows from two tables and unmatched rows in the left table of the Join keyword, with null padding for unmatched rows


The right join on the outer join returns all matching rows from two tables and rows that do not match in the table to the right of the JOIN keyword, with null padding for unmatched rows


Full join on fully connected returns all matching rows in two tables and unmatched rows with null padding for unmatched rows


The cross join intersection returns the Cartesian product mathematics in which all rows in the two tables are connected: Assuming set a={a,b}, set b={0,1,2}, the Cartesian product of two sets is {(a,0), (a,1), (a,2), (b,0), (b,1), (b,2)}


A self-connected query requires a table alias select S. Course number, C. Instructor from course Information S, course information C where S. Course number =c.

Self-connect equivalent to cross-connect



SQL Server Connection Query jion

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.