回答編集履歴
3
訂正
test
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
left join test03 C
|
14
14
|
on B.field02=C.field02
|
15
15
|
) BC
|
16
|
-
on A.field01=BC.
|
16
|
+
on A.field01=BC.field01 OR (A.field01 <>'AB' and BC.field01 Is Null)
|
17
17
|
|
18
18
|
```
|
19
19
|
※なんか無理やり感が否めませんが。
|
2
訂正
test
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
left join test03 C
|
14
14
|
on B.field02=C.field02
|
15
15
|
) BC
|
16
|
-
on A.field01=
|
16
|
+
on A.field01=BC.A.field01 OR (A.field01 <>'AB' and BC.A.field01 Is Null)
|
17
17
|
|
18
18
|
```
|
19
19
|
※なんか無理やり感が否めませんが。
|
1
訂正
test
CHANGED
@@ -8,10 +8,12 @@
|
|
8
8
|
left join test03 C
|
9
9
|
on B.field01=C.field01
|
10
10
|
union all
|
11
|
-
select
|
11
|
+
select Null field01, C.Key_val
|
12
12
|
from test02 B
|
13
13
|
left join test03 C
|
14
14
|
on B.field02=C.field02
|
15
15
|
) BC
|
16
|
-
on A.field01=BC.A.field01
|
16
|
+
on A.field01=coalesce(BC.A.field01, A.field01)
|
17
|
+
|
17
18
|
```
|
19
|
+
※なんか無理やり感が否めませんが。
|