回答編集履歴
1
対照例追記
test
CHANGED
@@ -1,3 +1,5 @@
|
|
1
1
|
select * from chat where id not in ( select chat_id from chat_read where staff_id = 2);
|
2
2
|
|
3
3
|
とりあえず解決 というところだとこれでどうでしょうか?
|
4
|
+
|
5
|
+
例) staff_id が2の未読の場合
|