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.
わかりました、私はこれを理解するために2日間試みてきました。私は2つのテーブルを持っています
組織の部門からのユーザーIDの数をリストしたいと思います。
これを試すことができますか:
SELECT b.depname, count(a.id) FROM organization_dep_users a INNER JOIN Organization_dep b ON a.depid = b.id GROUP BY b.depname;
詳細については、Barmarに感謝します。