Guest User

Untitled

a guest
Feb 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. SELECT
  2. InvoiceNo,
  3. NetAmountAbs,
  4. InvoiceDate
  5. FROM tblinvoice
  6. WHERE GrossAmountAbs >= 200
  7. GROUP BY InvoiceNo,
  8. NetAmountAbs,
  9. InvoiceDate
  10. HAVING COUNT(*) > 1
  11. AND SUM(CASE WHEN NetAmount_Doc >= 0 THEN 1 ELSE 0 END) > 1
  12. AND MIN(AccountNumber) != MAX(AccountNumber)
  13. AND MAX(GrossAmountAbs) != MIN(GrossAmountAbs)
  14. AND MAX(ImportID) = 2
  15.  
  16. [mysqld]
  17. log_bin_trust_function_creators=1
  18. datadir=E:/MariaDB 10.2.8
  19. port=3306
  20. sql_mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"
  21. default_storage_engine=innodb
  22. innodb_buffer_pool_size=25000M
  23. character-set-server=utf8
  24. innodb_io_capacity=200
  25. innodb_read_io_threads=64
  26. innodb_thread_concurrency=0
  27. innodb_write_io_threads=64
  28. max_connections=1000
  29. innodb_lock_wait_timeout=50
  30. lower_case_table_names=2
  31. event_scheduler=on
  32. character-set-server=utf8
  33. max_allowed_packet=100M
  34. connect_timeout=10
  35. innodb-log-file-size=96M
  36. innodb_log_buffer_size=32M
  37. [client]
  38. port=3306
  39. plugin-dir=C:/ProgramFiles/MariaDB 10.2/lib/plugin
Add Comment
Please, Sign In to add comment