Guest User

Untitled

a guest
May 24th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. SELECT
  2. count(*)
  3. FROM
  4. "public"."reported_transactions" as "ReportedTransaction"
  5. inner join "public"."transactions" as "Transaction" on ("ReportedTransaction"."transaction_id" = "Transaction"."transaction_id")
  6. inner join "public"."receipts" as "Receipt" on ("Transaction"."receipt_id" = "Receipt"."receipt_id")
  7. WHERE
  8. "ReportedTransaction"."is_closed" = false
  9. AND "ReportedTransaction"."creator_reason" not like '%Is: buyer%'
  10. AND "ReportedTransaction"."creation_tsz" <= now() + '12 hours ago'
  11. AND "Transaction"."seller_user_id" IS NOT NULL
  12. AND "Transaction"."buyer_user_id" IS NOT NULL;
Add Comment
Please, Sign In to add comment