回答編集履歴
1
追記
test
CHANGED
@@ -9,3 +9,27 @@
|
|
9
9
|
```
|
10
10
|
|
11
11
|
こんな単純な話じゃなくて?
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
最小日付の行を取得という事なら
|
16
|
+
|
17
|
+
```SQL
|
18
|
+
|
19
|
+
select *
|
20
|
+
|
21
|
+
from テーブル t1
|
22
|
+
|
23
|
+
where not exists(
|
24
|
+
|
25
|
+
select 1 from テーブル
|
26
|
+
|
27
|
+
where person=t1.person
|
28
|
+
|
29
|
+
and type=t1.type
|
30
|
+
|
31
|
+
and date<t1.date
|
32
|
+
|
33
|
+
)
|
34
|
+
|
35
|
+
```
|