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