What is the difference between Cartesian product and cross join?

前端 未结 3 1041
挽巷
挽巷 2020-12-03 04:56

I am working on SQL Server 2008, and wanted to know about what is the differnce between Cartesian Product and Cross Join. Can somebody please help me to clear the concept?

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 05:50

    When you do Cross join you will get cartesian product. Each row in the first table is matched with every row in the second table

    enter image description here

提交回复
热议问题