Time_Clock_Entry_fuer_ben_AW.iqd 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. COGNOS QUERY
  2. STRUCTURE,1,1
  3. DATABASE,ARIntelligence
  4. DATASOURCENAME,C:\GlobalCube\System\ARI\IQD\Service\Time_Clock_Entry_fuer_ben_AW.imr
  5. TITLE,Time_Clock_Entry_fuer_ben_AW.imr
  6. BEGIN SQL
  7. select distinct c13 as c1,
  8. c12 as c2,
  9. c11 as c3,
  10. c10 as c4,
  11. XSUM(c14 for c9) as c5,
  12. c9 as c6
  13. from
  14. (select ((T1."Service Order No_" || '_' || (rtrim((cast_numberToString(cast_integer(T1."Service Job No_")))))) || '_' || (T1."Resource No_" || ' - ' || T2."Name")) as c9,
  15. T1."Service Order No_" || '_' || (rtrim((cast_numberToString(cast_integer(T1."Service Job No_"))))) as c10,
  16. T1."Service Job No_" as c11,
  17. T1."Service Order No_" as c12,
  18. T1."Resource No_" || ' - ' || T2."Name" as c13,
  19. ((cast_float(T1."Duration"))) as c14
  20. from "Gottstein7x"."dbo"."AH Gottstein$Employee" T2,
  21. "Gottstein7x"."dbo"."AH Gottstein$Time Clock Entry" T1
  22. where (T2."No_" = T1."Employee No_")
  23. and ((((T1."Date" >= TIMESTAMP '2022-01-01 00:00:00.000') and (T1."Sorting" = 0)) and (T1."Canceled" = 0)) and (T1."Service Order No_" <> ''))
  24. ) D1
  25. order by c6 asc,c4 asc
  26. END SQL
  27. COLUMN,0,Resource No
  28. COLUMN,1,Service Order No
  29. COLUMN,2,Service Job No
  30. COLUMN,3,Order_job_No
  31. COLUMN,4,Summe_Order_Job
  32. COLUMN,5,Order_job_resource