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.
私は、特にテーブルBの外部キーのフィールドを持つテーブルAを持っています。私はフェッチしたいです(基準APIが優先、HQLもOK)一意のB参照を持つAのXエントリ、
何か案が?
FROM A AS a WHERE a.b IN (SELECT ax.b FROM A AS ax GROUP BY b HAVING COUNT(b) = 1)