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.
我有一个列名国家,其中有 3 个条目,如下所示。在每个国家,我都有一组人在不同的专栏中工作。我想要一个计数查询,它可以在单个查询中计算人们在每个国家/地区的工作情况。
country ________ India America China
尝试这个:
SELECT country,COUNT(*) FROM table GROUP BY country;