Click here to Skip to main content
15,923,120 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
SQL
(Select IIF(GBL.BU='GBL DLV','Horizontal','Vertical') as Unit, IIF(GBL.BU='GBL DLV','BTOFF',GBL.BU) as BU,GBL.Proj_Vertical,AVG(GBL.FTE) as Off_FTE,AVG(GBL.AVB) as Off_ABP,AVG(GBL.TBH) as Off_TBH,AVG(GBL.UTL) as Off_UTL,AVG(RTBL.FTE) as Tot_FTE,AVG(RTBL.AVB) as Tot_AVB,AVG(RTBL.TBH) as Tot_TBH,  AVG(RTBL.UTL) as Tot_UTL,GBL.Month From

(Select BU,Proj_Vertical,Sum([AVA FTE]) as [FTE] ,Sum(ACGHRAWP) as [AVB],Sum(TotBLDHR) as [TBH] ,IIF(Sum(TotBLDHR)=0,'0',(Sum(TotBLDHR)/Sum(ACGHRAWP))*100) as [UTL],Month From GeowisebilledMain Where Proj_Vertical Not In ('CIO OFFICE','GBM','STG') And Emp_Curr_Location='OFFSHORE' And Month > CDate('5/28/2012') And (Month between @StartDate and @EndDate) And BU Not in ('SUPPORT','ES')  Group By BU,Proj_Vertical , Month Order By Month Desc)  as GBL

FULL OUTER Join

(Select BU,Proj_Vertical,Sum([AVA FTE]) as [FTE] ,Sum(ACGHRAWP) as [AVB],Sum(TotBLDHR) as [TBH] ,IIF(Sum(TotBLDHR)=0,'0',(Sum(TotBLDHR)/Sum(ACGHRAWP))*100) as [UTL],Month From GeowisebilledMain Where Proj_Vertical Not In ('CIO OFFICE','GBM','STG') And Month > CDate('5/28/2012') And (Month between @StartDate1 and @EndDate1) And BU Not in ('SUPPORT','ES')  Group By BU,Proj_Vertical,Month Order By Month Desc) as RTBL On RTBL.Proj_Vertical = GBL.Proj_Vertical And RTBL.Month=GBL.Month Group By GBL.BU,GBL.Proj_Vertical,GBL.Month)


This Query is not working in MS Access. Can anyone sugget me some other solution.
Posted
Comments
Slacker007 31-Aug-12 6:14am    
This is not a question. I have reported this.

1 solution

Hah !
No Answer so far..

Well i got the solution.

if full outer join is not working some where then you can apply a left outer join then apply a right outer join on the same and Union the results of both t he join. it will give the result of full outer join.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900