これが重複している場合は申し訳ありませんが、必要な答えが見つかりません。
私のデータを考えてみましょう:
表 - report_detail
report_id |category |sub_category |report name
-------------------------------------------------------
1 |1 |1 |Donkey Report
2 |2 |2 |Grandma Report
3 |1 |1 |Poop Report
表 - report_subscriptions
user_id |report_id
--------------------------
1 |1
2 |2
1 |2
私の質問は、report_subscriptions で user_id = 1 にサブスクライブされていない report_detail テーブルからすべての report_id を選択するにはどうすればよいですか?
ありがとうございました!