Advertisement
suburg

Untitled

Dec 1st, 2022 (edited)
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. select
  2. orderexecu0_.order_execution_ntfn_guid as order_ex1_12_,
  3. orderexecu0_.report_month as report_m2_12_,
  4. orderexecu0_.account_id as account_3_12_,
  5. orderexecu0_.fias_address as fias_add4_12_,
  6. orderexecu0_.fias_house_code as fias_hou5_12_,
  7. orderexecu0_.flat_number as flat_num6_12_,
  8. orderexecu0_.hcs_service_id as hcs_serv7_12_,
  9. orderexecu0_.hm_account_guid as hm_accou8_12_,
  10. orderexecu0_.non_living_number as non_livi9_12_,
  11. orderexecu0_.order_id as order_i10_12_,
  12. orderexecu0_.order_no as order_n11_12_,
  13. orderexecu0_.payment_date as payment12_12_,
  14. orderexecu0_.payment_document_id as payment13_12_,
  15. orderexecu0_.payment_document_number as payment14_12_,
  16. orderexecu0_.payment_period_month as payment15_12_,
  17. orderexecu0_.payment_period_year as payment16_12_,
  18. orderexecu0_.receiver_inn as receive17_12_,
  19. orderexecu0_.receiver_kpp as receive18_12_,
  20. orderexecu0_.receiver_name as receive19_12_,
  21. orderexecu0_.room_number as room_nu20_12_,
  22. orderexecu0_.single_account_id as single_21_12_,
  23. orderexecu0_.status as status22_12_,
  24. orderexecu0_.total as total23_12_,
  25. orderexecu0_.total_ack as total_a24_12_
  26. from
  27. cegisso.egisso_order_execution_ntfn_info orderexecu0_
  28. where
  29. orderexecu0_.payment_date>='2022-08-01'::date
  30. and orderexecu0_.payment_date<='2022-10-30'::date
  31. and (orderexecu0_.report_month in ('2022-08-01'::date , '2022-09-01'::date , '2022-10-01'::date ))
  32. and (orderexecu0_.order_execution_ntfn_guid in
  33. (select
  34. notificati1_.notification_guid
  35. from
  36. cegisso.egisso_notifications_payment_documents notificati1_
  37. where
  38. notificati1_.report_month = orderexecu0_.report_month
  39. and (notificati1_.payment_document_guid in (select
  40. paymentdoc2_.payment_document_guid
  41. from
  42. cegisso.egisso_payment_document_info paymentdoc2_
  43. where
  44. paymentdoc2_.report_month <= notificati1_.report_month
  45. and (paymentdoc2_.account_guid in ('937b1d9c-8c61-4250-b0c2-f44db6d189d5'::uuid , '99305375-b3ba-4112-93cb-2d65aa330014'::uuid))))
  46. )
  47. );
  48.  
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement