外部申请 [英] outer Apply

查看:72
本文介绍了外部申请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

请你帮我解决以下问题外部适用。因为两者都是相同的和以下连接查询是缓慢的,外部申请可能很快。

can u please help me out to replace the below query to outer apply .because both are same and below join query is slow and outer apply may be fast.

FROM tblbook AS b INNER JOIN tblchapter AS c ON b 出价 = c 出价交叉加入tblChapterStatusDetails AS s

其中 c 出价
null s 出价
not null

where c.bid is not null and s.bid is not null

推荐答案

取代什么?加入或交叉加入?外部申请=左边加入,但我没有看到  LEFT JOIN在您的查询中?

What replace? JOIN or CROSS JOIN? OUTER APPLY =LEFT JOIN, but I do not see  LEFT JOIN in your query?

您能否发布样本数据 以及期望的结果?

Can you post sample data  along with desired result?


这篇关于外部申请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆