回答編集履歴
1
chousei
test
CHANGED
@@ -1,4 +1,28 @@
|
|
1
1
|
```SQL
|
2
|
+
|
3
|
+
create table tbl1(ID varchar(10),code varchar(10));
|
4
|
+
|
5
|
+
insert into tbl1 values
|
6
|
+
|
7
|
+
('AAA','aaa111'),
|
8
|
+
|
9
|
+
('AAA','bbb111'),
|
10
|
+
|
11
|
+
('AAA','aaa111'),
|
12
|
+
|
13
|
+
('BBB','aaa111');
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
create table tbl2(ID varchar(10),mail varchar(10));
|
18
|
+
|
19
|
+
insert into tbl2 values
|
20
|
+
|
21
|
+
('AAA',' aaa@'),
|
22
|
+
|
23
|
+
('BBB',' bbb@');
|
24
|
+
|
25
|
+
|
2
26
|
|
3
27
|
select * from(
|
4
28
|
|