![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
You compared... query (1): A left outer join B * on *B.ID = A.ID * and <conditions with query (2): A left outer join B * on *B.ID = A.ID where B.ID is null * or *(<conditions>) Correction: |
#4
| |||
| |||
|
|
But, *a pair of a row of A and a row of B which didn't satisfy the conditions *would not be included in the result of query (b). |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
On Nov 3, 8:31*pm, Tonkuma <tonk... (AT) fiberbit (DOT) net> wrote:> You compared.... query (1): A left outer join B * on *B.ID = A.ID * and <conditions with query (2): A left outer join B * on *B.ID = A.ID where B.ID is null * or *(<conditions>) Correction: Those two queries would not be equivalent. The result set of (b) would be same or smaller than the result set of (a). Here is an example. |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Test data were made as followings: |
![]() |
| Thread Tools | |
| Display Modes | |
| |