比较两个集合运算
您在视频练习中学到,UNION ALL 会返回重复值,而 UNION 不会。在本练习中,您将更深入地理解两者的差异,了解在什么情况下应使用 UNION,而不是 UNION ALL。
您将查看 economies 和 populations 表中的国家代码与年份的组合。
本练习是课程的一部分
SQL 数据连接
交互式实操练习
通过完成这段示例代码来试试这个练习。
-- Query that determines all pairs of code and year from economies and populations, without duplicates
___