Sybase中JOIN和Inner JOIN的区别
Difference between JOIN and Inner JOIN in Sybase
我有如下查询。我不明白下面代码中使用的 join
和 inner join
之间的区别。他们不一样吗?这是为 Sybase
编写的。请帮我看看区别。
SELECT
count(distinct c.stuID ) as cnt
FROM
tableC c
Inner Join
tableB b
On c.otherID = b.otherID
Inner Join
tableX gd
On b.otherID = gd.otherID
Inner Join
tableY g
On gd.groupID = g.GROUPID
and g.GROUPTYPEID in
(
1,
3
)
JOIN
tableZ d
on c.OPID = d.OPID
JOIN
tableM e
on c.OTHERID = e.otherID
and c.stuID = e.stuID
and DATEDIFF(..........)
根据标准INNER JOIN=JOIN。我想,Sybase并没有违反这个规则
我有如下查询。我不明白下面代码中使用的 join
和 inner join
之间的区别。他们不一样吗?这是为 Sybase
编写的。请帮我看看区别。
SELECT
count(distinct c.stuID ) as cnt
FROM
tableC c
Inner Join
tableB b
On c.otherID = b.otherID
Inner Join
tableX gd
On b.otherID = gd.otherID
Inner Join
tableY g
On gd.groupID = g.GROUPID
and g.GROUPTYPEID in
(
1,
3
)
JOIN
tableZ d
on c.OPID = d.OPID
JOIN
tableM e
on c.OTHERID = e.otherID
and c.stuID = e.stuID
and DATEDIFF(..........)
根据标准INNER JOIN=JOIN。我想,Sybase并没有违反这个规则