select * from
(select clientId,rEMAINNumber from Syst_BillD_PSI D,Syst_Billm_PSI m where M.BILLID=M.BILLID and resid=1 and Remainnumber>0) tt
outer join
(select clientId,Sum(D.OutNumber-D.QuitNumbere) as BuyNumber from XSt_BillM_Sale M left outer join XST_BillD_Sale D on M.BillID=D.BillID
where ResID=1 group by clientId having Sum(D.OutNumber-D.QuitNumbere)>0) ff
on tt.ClientID=ff.ClientID我把outer换成left,right都可以,innser也可以为什么outer不行
(select clientId,rEMAINNumber from Syst_BillD_PSI D,Syst_Billm_PSI m where M.BILLID=M.BILLID and resid=1 and Remainnumber>0) tt
outer join
(select clientId,Sum(D.OutNumber-D.QuitNumbere) as BuyNumber from XSt_BillM_Sale M left outer join XST_BillD_Sale D on M.BillID=D.BillID
where ResID=1 group by clientId having Sum(D.OutNumber-D.QuitNumbere)>0) ff
on tt.ClientID=ff.ClientID我把outer换成left,right都可以,innser也可以为什么outer不行
解决方案 »
- 求助:'Query2:Parameter 'bh' not found'
- 如何把目录下的所有文本文件批量倒入到MSSQL数据库里?
- To 所有春节不能回家的人
- 怎么将多个Adodataset合并成一个Adodataset?
- 数据提供程序或其它服务返回 E_FAIL 状态!!!!急死我了,帮忙了!
- 在线等待 如何将数组字符串转换为String,请看下而的内容
- 表名不确定时对多表进行动态查询,并希望实现修改功能应该怎么做
- 请问如何编写文件恢复软件
- 两个不难的问题(急~~~~~~)
- delphi标签打印设计厂牌
- 很多日记、随手贴之类的软件在文本编辑窗口很行都有横线,如何实现才是最优的?
- DBGridEh拖动问题,解决立即给分.
Left Outer Join
Right Outer Join
Full Outer Join
其中的Outer可以省略不写。