交叉申请的替代方案(在()中加入X

时间:2017-07-24 19:38:38

标签: sql sql-server tsql subquery cross-apply

经过大量工作,我做了这个(正确的)查询:

select count(distinct t1.code+t1.flname+t1.col1+t2.flname) 
from #t4 t1 cross apply (select flname from #t4 sq where sq.col1=t1.col1)t2 

经过大量的工作后,我没有使用交叉申请而无法生成平等查询。可能吗?也许与WITH?怎么样不使用WITH?

1 个答案:

答案 0 :(得分:1)

简单的class Point { private int x, y; public Point(int x, int y) { super(); // this is the change. this.x = x; this.y = y; } public Point() { this(0, 0); } }应该是等效的:

FormUrlEncodedContent