Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

SqlServer series notes-join query JION

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Rows with mismatched connections within the Inner Join on/Join on do not return data

The left outer join of Left Join on returns all matching rows in the two tables and mismatched rows in the table on the left side of the JOIN keyword. For mismatched rows, fill them with NULL.

The Right Join on right outer join returns all matching rows in the two tables and mismatched rows in the table to the right of the JOIN keyword, populated with NULL for mismatched rows

Full Join on full join returns all matching rows and mismatched rows in both tables, populated with NULL for mismatched rows

The Cross Join cross-join returns the Cartesian product of all rows in the joined two tables: in mathematics, assuming that the set A = {arecore b} and the set B = {0 ~ (1)) ~ (2)}, then the Cartesian product of the two sets is {(a ~ () ~ (1)), (() ~ (), (() ~ ().

Self-join query needs to alias the table select s. Course number, c. From course information s, course information c where s. Course number = c. Course number

Self-connection is equivalent to cross-connection

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report