Logical logic when choosing tables without joining?

Silent question .. what logic does the database use to determine the result set if you select without a connection, for example:

select * from table1, table2
+3
source share
2 answers

It uses a Cartesian product , it gives any possible combination of two tables.

Additional information on this applies to SQL.

+8
source

Cartesian product. Each row in the first table is mapped to each row in table 2.

+5
source

Source: https://habr.com/ru/post/1711600/


All Articles