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.
如何计算表中多对多关系的数量?如果我有一张包含两个组织代码(例如“单位”和“代码”)的个人表格,我如何生成与代码存在多对多关系的单位列表?
我们的目标是看看它们的可替代性。
获取单位的 distict 计数以查看有多少单位有关系:
select count(distinct unit) from individuals