请问一下这个inner join怎么写

kroda kroda 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
select emp.*,dept.* from emp,dept,
(
select rowid1,rowid2 from (select res.*, rownum rownum_
from (select emp.rowid rowid1,dept.rowid rowid2 from emp,dept where emp.deptno = dept.deptno) res
where rownum <= 6)
where rownum_ >= 4
) tt
where emp.rowid = tt.rowid1
and dept.rowid = tt.rowid2
and emp.deptno = dept.deptno

想改成inner join的方式 不知道怎么写
...全文

相关推荐

评论 13
收藏 已收藏
分享
返回顶部
kroda
MS-SQL Server 34,876 成员 254,635 内容