1
我解决了查询......但现在我有这两个查询合并:如何合并两个select查询?
(SELECT Zila,
COUNT(AbhidayMaster.OfficeRegId) As AbhidayPaidSansthan,
SUM(AbhidayMaster.TotalEmp) As TotalWorkerPaid
FROM PanjikaranMaster, AbhidayMaster
WHERE PanjikaranMaster.OfficeRegId=AbhidayMaster.OfficeRegId
AND AbhidayMaster.DipositDate Between ('2012-06-22') AND ('2012-09-19') GROUP BY Zila)
Select
((SELECT count(distinct OfficeRegId) FROM PanjikaranMaster)
-
(SELECT count(distinct OfficeRegId) FROM AbhidayMaster)) As AbhidayNotPaidSansthan
@ user1673240:请**不要**把代码样本或试样数据转换为注释 - 因为您无法对其进行格式化,所以**非常难**阅读它。相反:**通过编辑来更新**问题以提供更多信息!谢谢。 –
感谢您的帮助......该问题已解决..再次我卡在另一个查询..请参阅上述更新的查询。 – azz845
请任何人帮我解决这个问题....... – azz845