Advertisement
GLASHATAY_007

user_suppliers

Oct 5th, 2023
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Select
  2.     inn,
  3.     fullname,
  4.     u.*
  5. From organization o
  6. Join organizationdata od on o.organizationdataid = od.id --and od.accreditationenddate > now() c 09.03.23 аккредитация бессрочная
  7. join signature sign on sign.id = od.operatorsignatureid
  8. join users u on u.signatureid=sign.id
  9. Where 1=1
  10. And o.actual_id is null
  11. And o.active = true
  12.  And o.type = 'supplier'
  13.  And o.draft = false
  14. limit 123
  15. ;
  16.  
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement