Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
hibernateを使用していて、テーブルBieに参照がないテーブルAのレコードのみを表示したいテーブルAには、テーブルBの外部キーである主キーjobIdがあります。ここで、テーブルBにないID値のみを表示したいと思います。表Bにあります。
select a from A a where a.jobId not in (select b.jobId from B b)