verkaeufer_aktiv_struktur.iqd 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. COGNOS QUERY
  2. STRUCTURE,1,1
  3. DATABASE,GC_Navision
  4. DATASOURCENAME,C:\GlobalCube\System\NAVISION\IQD\nw\verkaeufer_aktiv_struktur.imr
  5. TITLE,verkaeufer_aktiv_struktur.imr
  6. BEGIN SQL
  7. select T1."User ID" as c1,
  8. T1."Employee No_" as c2,
  9. T1."Salesperson" as c3,
  10. T2."No_" as c4,
  11. T2."First Name" as c5,
  12. T2."Last Name" as c6,
  13. T2."Name" as c7,
  14. T2."Status" as c8,
  15. T2."Inactive Date" as c9,
  16. T2."Termination Date" as c10,
  17. 'aktive Verkäufer' as c11
  18. from ("NAVISION"."import"."User_Setup" T1 left outer join "NAVISION"."import"."Employee" T2 on ((((((T2."No_" = T1."Employee No_") and (T2."Status" = 0)) and (T2."Inactive Date" = TIMESTAMP '1753-01-01 00:00:00.000')) and (T2."Termination Date" = TIMESTAMP '1753-01-01 00:00:00.000')) and (T1."Salesperson" <> ' ')) and (T1."Salesperson" <> 'DIV')) and (T2."Client_DB" = T1."Client_DB"))
  19. where (((T1."Salesperson" <> ' ') and (not T1."Salesperson" IN ('DIV','BMWREL'))) and ((cast_float(T1."Salesperson")) BETWEEN 100 AND 999))
  20. order by c3 asc
  21. END SQL
  22. COLUMN,0,User Id
  23. COLUMN,1,Employee No
  24. COLUMN,2,Salesperson
  25. COLUMN,3,No
  26. COLUMN,4,First Name
  27. COLUMN,5,Last Name
  28. COLUMN,6,Name
  29. COLUMN,7,Status
  30. COLUMN,8,Inactive Date
  31. COLUMN,9,Termination Date
  32. COLUMN,10,Verkäufer / Sonstige