如何从许多一对多关系中选择所有事物,在许多一对多关系中向下几层?我不确定如何嵌套所有左连接。
例子
There are many Institutions
Each Institution has many Departments
Each Department has many Forums
Each Forum has many Users
Each User has many Posts
Each Post has many Comments
查找机构的所有评论。
我四处搜索,但我不确定它的名称是什么 - 链嵌套的一对多关系查询?我发现的最接近的是SQL 左连接与 FROM 行上的多个表?