views:

66

answers:

2

Dumb question.. what logic does the database use to determine the result set if you do a select without a join such as:

select * from table1, table2
+4  A: 

Cartesian product. Each row in table one is matched up to each row in table two.

Tom Hubbard
+7  A: 

It uses a cartesian product, it gives every possible combination of the two tables.

More info on this, applied to SQL.

Manuel Ferreria