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