跳至内容
首页SQL

课程

Joining Data in SQL

基础技能水平
更新时间 2026年4月
Level up your SQL knowledge and learn to join tables together, apply relational set theory, and work with subqueries.
免费开始课程
SQLData Manipulation2 小时 - 3 小时3,950 经验值310K+成就声明

创建您的免费帐户

继续操作即表示您接受我们的《使用条款》和《隐私政策》,并同意您的数据存储在美国。

深受数千家公司学习者的喜爱

Group

培训2人或更多?

试用DataCamp for Business

课程描述

Joining data is an essential skill in data analysis, enabling you to draw information from separate tables together into a single, meaningful set of results. In this comprehensive course on joining data, you'll delve into the intricacies of table joins and relational set theory, learning how to optimize your queries for efficient data retrieval.

Understand Data Joining Fundamentals

You will learn how to work with multiple tables in SQL by navigating and extracting data from various tables within a SQL database using various join types, including inner joins, outer joins, and cross joins. With practice, you'll gain the knowledge of how to select the appropriate join method.

Explore Advanced Data Manipulation Techniques

Next up, you'll explore set theory principles such as unions, intersects, and except clauses, as well as discover the power of nested queries in SQL. Every step is accompanied by exercises and opportunities to apply the theory and grow your confidence in SQL.

先决条件

Intermediate SQL
1

纵向合并数据

  • 使用 UNION 堆叠行

    将来自多个表的行堆叠到单个统一的结果中,并了解何时堆叠(而非连接)才是合并数据的正确方法。

免费开始课程
2

横向合并数据

  • 使用 LEFT JOIN 保留所有行

    在不丢失任何行的情况下,为基础表补充额外数据,并理解何时选择 left join 是正确的——特别是当主表中的每一行在另一张表中并不一定都有匹配项时。

  • 使用 INNER JOIN 保留匹配行

    只合并跨表匹配的行,理解 inner join 与 left join 的区别,并根据未匹配的行是否对你的分析重要,在这两者之间做出选择。

  • 基于多个列进行连接

    在没有单一列可以唯一标识匹配行的情况下,能够准确地连接表,并理解选择错误连接列所带来的后果。

免费开始课程
Joining Data in SQL
课程完成

获得成就证明

将此证书添加到你的 LinkedIn 档案、简历或履历中
在社交媒体和绩效评估中分享
立即注册

加入超过19百万学习者,今天就开始Joining Data in SQL!

创建您的免费帐户

继续操作即表示您接受我们的《使用条款》和《隐私政策》,并同意您的数据存储在美国。

通过 DataCamp for Mobile 提升您的数据技能

随时随地通过我们的移动课程和每日 5 分钟编程挑战提升技能。