DATEV_VK_Hilfe_Boni.iqd 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. COGNOS QUERY
  2. STRUCTURE,1,1
  3. DATABASE,DATEV_DWH
  4. DATASOURCENAME,C:\GlobalCube\System\WERWISO\IQD\nw\DATEV_VK_Hilfe_Boni.imr
  5. TITLE,DATEV_VK_Hilfe_Boni.imr
  6. BEGIN SQL
  7. select T1."Mandant ID" as c1,
  8. T1."Konto" as c2,
  9. T1."Belegdatum" as c3,
  10. T1."Buchungstext" as c4,
  11. (od_left(T1."Belegfeld 1",9)) as c5,
  12. T1."Herkunft-Kz" as c6,
  13. T1."Belegfeld 2" as c7,
  14. T1."KOST1 - Kostenstelle" as c8,
  15. T1."KOST2 - Kostenstelle" as c9,
  16. T1."Konto_Datev_Kontenbeschriftung" as c10,
  17. T1."Kostenstelle_Traeger" as c11,
  18. T1."Konto_Zeichen" as c12,
  19. T1."Länge_Konto_Zeichen" as c13,
  20. T1."Standort_ID" as c14,
  21. T1."Marke_ID" as c15,
  22. T1."KST_ID" as c16,
  23. T1."Absatzkanal_ID" as c17,
  24. T1."Antriebsart_ID" as c18,
  25. T1."Bookkeep Date" as c19,
  26. T1."Kostenträger_ID" as c20,
  27. T1."Acct Nr" as c21,
  28. T1."Umsatz Soll" as c22,
  29. T1."Umsatz Haben" as c23,
  30. (cast_float(T1."Betrag")) as c24,
  31. T1."PK_Auto" as c25,
  32. T1."Marke_mit_Bez" as c26,
  33. T1."Kostenträger_mit_Bez" as c27,
  34. T1."Absatzkanal_mit_Bez" as c28,
  35. T1."KST_mit_Bez" as c29,
  36. (cinteger(nconvert(((od_left(T1."Belegfeld 1",9)))),0)) as c30
  37. from "ZdbSNCDatawarehouseDATEV"."dbo"."fBuchungsbelege" T1
  38. where ((T1."Konto" IN (78000,78500)) and (((od_left(T1."Belegfeld 1",9))) BETWEEN '0' AND '9999999999999'))
  39. END SQL
  40. COLUMN,0,Mandant Id
  41. COLUMN,1,Konto
  42. COLUMN,2,Belegdatum
  43. COLUMN,3,Buchungstext
  44. COLUMN,4,Belegfeld 1
  45. COLUMN,5,Herkunft-kz
  46. COLUMN,6,Belegfeld 2
  47. COLUMN,7,Kost1 - Kostenstelle
  48. COLUMN,8,Kost2 - Kostenstelle
  49. COLUMN,9,Konto Datev Kontenbeschriftung
  50. COLUMN,10,Kostenstelle Traeger
  51. COLUMN,11,Konto Zeichen
  52. COLUMN,12,Länge Konto Zeichen
  53. COLUMN,13,Standort Id
  54. COLUMN,14,Marke Id
  55. COLUMN,15,Kst Id
  56. COLUMN,16,Absatzkanal Id
  57. COLUMN,17,Antriebsart Id
  58. COLUMN,18,Bookkeep Date
  59. COLUMN,19,Kostenträger Id
  60. COLUMN,20,Acct Nr
  61. COLUMN,21,Umsatz Soll
  62. COLUMN,22,Umsatz Haben
  63. COLUMN,23,Betrag
  64. COLUMN,24,Pk Auto
  65. COLUMN,25,Marke Mit Bez
  66. COLUMN,26,Kostenträger Mit Bez
  67. COLUMN,27,Absatzkanal Mit Bez
  68. COLUMN,28,Kst Mit Bez
  69. COLUMN,29,Belegfeld_Zahl