回答編集履歴

1

変更

2020/06/24 12:51

投稿

sazi
sazi

スコア25184

test CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  select large_group, count(distinct id)
4
4
 
5
- from tbl t
5
+ from G_TABLE t
6
6
 
7
7
  where (
8
8
 
9
- select count(*) from tbl
9
+ select count(*) from G_TABLE
10
10
 
11
11
  where large_group = t.large_group and id = t.id
12
12
 
@@ -24,11 +24,11 @@
24
24
 
25
25
  select large_group, count(distinct id)
26
26
 
27
- from tbl t
27
+ from G_TABLE t
28
28
 
29
29
  where exists(
30
30
 
31
- select 1 from tbl
31
+ select 1 from G_TABLE
32
32
 
33
33
  where large_group = t.large_group and id = t.id and small_group != t.small_group
34
34