了解SQL Server中的联接[关闭]

我很难理解SQL Server中的联接。我知道联接的定义是什么

  • Inner Join returns the matched rows in both tables
  • Left Join returns all records from the left table, and the matched records from the right table.
  • Right Join returns all records from the right table, and the matched records from the left table. etc

但是,当我在查询中实际应用联接时,我变得空白,只是不知道如何使用它。我们为什么还要使用它们?目的是什么?

以及我们如何知道何时使用哪个联接?就像给我一个方案一样,我只是无法确定要使用哪个联接。

任何人都可以共享可以正确解释并帮助我理解的链接吗?请。