Verkaeufer_aktiv.iqd 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. COGNOS QUERY
  2. STRUCTURE,1,1
  3. DATABASE,GC_Navision
  4. DATASOURCENAME,C:\GlobalCube\System\NAVISION\IQD\NW\Verkaeufer_aktiv.imr
  5. TITLE,Verkaeufer_aktiv.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. 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"))
  18. where ((((T1."Salesperson" <> ' ') and (T1."Salesperson" <> 'DIV')) and ((cast_float(T1."Salesperson")) BETWEEN 100 AND 999)) and (T2."Status" = 0))
  19. order by c3 asc
  20. END SQL
  21. COLUMN,0,User Id
  22. COLUMN,1,Employee No
  23. COLUMN,2,Salesperson
  24. COLUMN,3,No
  25. COLUMN,4,First Name
  26. COLUMN,5,Last Name
  27. COLUMN,6,Name
  28. COLUMN,7,Status
  29. COLUMN,8,Inactive Date
  30. COLUMN,9,Termination Date