回答編集履歴
1
外側にもdistinct。
test
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
|
5
5
|
```sql
|
6
6
|
|
7
|
-
select post_id from table where post_id in (select distinct(post_id) from table where category_id=3) and category_id=4;
|
7
|
+
select distinct(post_id) from table where post_id in (select distinct(post_id) from table where category_id=3) and category_id=4;
|
8
8
|
|
9
9
|
```
|