A
Alex
I am trying to rank using the following query:
SELECT Emp1.DFWeek, (Select Count (*) from qry_Defects_by_Oper_Shift_Chart
Where [DFWeek] < [Emp1].[DFWeek])+1 AS Seniority
FROM qry_Defects_by_Oper_Shift_Chart AS Emp1
ORDER BY Emp1.DFWeek DESC;
My query is ranking the DFWeek field, but not correctly.
I have a field DFWeeks, for example 18, 17, 16, 15. I need that field
ranked 18 = 1, 17 = 2, 16 = 3, 15 = 4. The same query may return 8, 9, 10,
11 and I'd need those ranked 11 = 1, 10 = 2, 9 = 3, 8 = 4. Any idea how I
can revise my query to work correctly? Thank you much.
SELECT Emp1.DFWeek, (Select Count (*) from qry_Defects_by_Oper_Shift_Chart
Where [DFWeek] < [Emp1].[DFWeek])+1 AS Seniority
FROM qry_Defects_by_Oper_Shift_Chart AS Emp1
ORDER BY Emp1.DFWeek DESC;
My query is ranking the DFWeek field, but not correctly.
I have a field DFWeeks, for example 18, 17, 16, 15. I need that field
ranked 18 = 1, 17 = 2, 16 = 3, 15 = 4. The same query may return 8, 9, 10,
11 and I'd need those ranked 11 = 1, 10 = 2, 9 = 3, 8 = 4. Any idea how I
can revise my query to work correctly? Thank you much.