阅读实体关系图
有时,您需要的信息被拆分在数据库的多张表中。
stackoverflow 中最常见的 tag_type 是什么?具有该 type 的 tag 对应哪些公司?
要生成这些公司的列表,您需要把三张表连接起来。
在确定用于连接的列时,可按需参考实体关系图。
本练习是课程的一部分
SQL 中的探索性数据分析
交互式实操练习
通过完成这段示例代码来试试这个练习。
-- Count the number of tags with each type
SELECT ___, ___ AS count
FROM ___
-- To get the count for each type, what do you need to do?
___ ___ ___
-- Order the results with the most common tag types listed first
___ ___ ___ ___;