Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. select id from CRM_MA where
  2. (
  3. (
  4. (
  5. Endedatum_DT>=20170817220000000
  6. )
  7. OR
  8. (
  9. (
  10. (
  11. Endedatum_DT>=20170816220000000 AND Endedatum_DT<20170817220000000
  12. )
  13. )
  14. AND
  15. (
  16. (
  17. MOD(Endedatum_DT,1000000000)>100000000 AND MOD(Endedatum_DT,1000000000)<=215900000
  18. )
  19. )
  20. )
  21. )
  22. AND
  23. (
  24. (
  25. Datum_DT<20170817220000000
  26. )
  27. OR
  28. (
  29. (
  30. (
  31. Datum_DT>=20170817220000000 AND Datum_DT<20170818220000000
  32. )
  33. )
  34. AND
  35. (
  36. (
  37. MOD(Datum_DT,1000000000)>=220000000 OR MOD(Datum_DT,1000000000)<220000000
  38. )
  39. )
  40. )
  41. )
  42. )
  43. OR
  44. (
  45. (
  46. (
  47. Datum_DT>=20170817220000000
  48. )
  49. OR
  50. (
  51. (
  52. (
  53. Datum_DT>=20170816220000000 AND Datum_DT<20170817220000000
  54. )
  55. )
  56. AND
  57. (
  58. (
  59. MOD(Datum_DT,1000000000)>100000000 AND MOD(Datum_DT,1000000000)<=215900000
  60. )
  61. )
  62. )
  63. )
  64. AND
  65. (
  66. (
  67. Datum_DT<20170817220000000
  68. )
  69. OR
  70. (
  71. (
  72. (
  73. Datum_DT>=20170817220000000 AND Datum_DT<20170818220000000
  74. )
  75. )
  76. AND
  77. (
  78. (
  79. MOD(Datum_DT,1000000000)>=220000000 OR MOD(Datum_DT,1000000000)<220000000
  80. )
  81. )
  82. )
  83. )
  84. AND
  85. (
  86. Endedatum_DT<1000000000
  87. )
  88. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement