It depends on the WHERE clause.
SELECT /++ordered++/ d.NAME, e.NAME FROM DEPT d, EMP e WHERE d.MGR = e.SS
Selects all managers for each department. Since there are 10 departments, this results in 10 entries.
SELECT /++ordered++/ d.NAME, e.NAME FROM EMP e, DEPT d
This will select all employees with the name of the department in which they work. Since the number of employees is 1000 people, your result will have 1000 lines.
A JOIN will never make your engine cross lines mxn , you are the result of an internal join always m if m < n
thomaux
source share