![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Select * From Quiz, Question Where Quiz.id = Question.id IMHO today inner join is a standard BTW left join is faster than inner join... Regards, Wojtaswww.e-krug.com |
#12
| |||
| |||
|
|
For starters, an outer join (such as left join) will only return the same result as an inner join if no rows from the outer table would be eliminated when running the inner join. |
#13
| |||
| |||
|
|
Yes, but when left and inner join returns same results - left is faster |
|
For starters, an outer join (such as left join) will only return the same result as an inner join if no rows from the outer table would be eliminated when running the inner join. Yes, but when left and inner join returns same results - left is faster (probably because it doesn't check the dependencies - just join results) We use left join instead inner in situations we know that inner join will not cut results.... Regards, Wojtas |
#14
| |||
| |||
|
|
However, I think using LEFT JOINs instead of INNER JOINs is not the proper solution. |
#15
| |||
| |||
|
|
For starters, an outer join (such as left join) will only return the same result as an inner join if no rows from the outer table would be eliminated when running the inner join. Yes, but when left and inner join returns same results - left is faster (probably because it doesn't check the dependencies - just join results) We use left join instead inner in situations we know that inner join will not cut results.... |
#16
| |||
| |||
|
|
If you specify Left Join instead of Inner Join, you are basically doing two things: 1. you are reducing the number of potential access paths during compilation 2. you are 'forcing' the access path between the two tables: from the outer table to the inner table |
![]() |
| Thread Tools | |
| Display Modes | |
| |