Cross join joins for generating two-sheet Cartesian sets

Source: Internet
Author: User
List all two tables. Result table: Column = The number of columns in the original table is added row = The number of rows in the original table is multiplied by the cross join connection is used to generate a Cartesian set of two tables. The use of the Cross join in SQL: 1, the number of records returned is the product of the number of records in a two table. 2. Connect all rows of table A to all rows in table B. Example: TableAr1 r2a BC DtableBr3 r41 4select * from TableA Cross join TABLEB;RETURN:R1 R2 R3 r4r1 R2 1 2r1 R2 3 4 a B R3 R4A B 1 2A b 3 4C D R3 r4c d 1 2C d 3 4

Cross join joins for generating two-sheet Cartesian sets

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.