P
Philippe Perrault
I am trying to make a query that looks at the [Date Loss]-Date() and counts
the number that are <=30, Between 31 And 60, Between 61 And 90.
Here is the SQL:
SELECT [CSM Report HHB].PMOS, [CSM Report HHB].GRADE, [CSM Report
HHB].SumOfAUTH_STR, [CSM Report HHB].CountOfSSN, ([Loss Date]-Date()) AS Days
FROM [CSM Report HHB] LEFT JOIN [HHB 214 FIB Alpha Roster] ON ([CSM Report
HHB].PMOS = [HHB 214 FIB Alpha Roster].PMOS) AND ([CSM Report HHB].GRADE =
[HHB 214 FIB Alpha Roster].Rank);
The date loss comes from the HHB 214 FIB Alpha Roster. Everyone on this
roster is grouped by Rank and PMOS and counted then summed for a total number
by Rank by MOS by the time this query is run.
the number that are <=30, Between 31 And 60, Between 61 And 90.
Here is the SQL:
SELECT [CSM Report HHB].PMOS, [CSM Report HHB].GRADE, [CSM Report
HHB].SumOfAUTH_STR, [CSM Report HHB].CountOfSSN, ([Loss Date]-Date()) AS Days
FROM [CSM Report HHB] LEFT JOIN [HHB 214 FIB Alpha Roster] ON ([CSM Report
HHB].PMOS = [HHB 214 FIB Alpha Roster].PMOS) AND ([CSM Report HHB].GRADE =
[HHB 214 FIB Alpha Roster].Rank);
The date loss comes from the HHB 214 FIB Alpha Roster. Everyone on this
roster is grouped by Rank and PMOS and counted then summed for a total number
by Rank by MOS by the time this query is run.