SHARE
TWEET

Untitled

a guest Jul 19th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT users.name, comment_stat.zametka, comment_stat.otkaz, comment_stat.zvonok
  2. FROM users
  3.           LEFT JOIN (SELECT customer.iduser
  4.                       FROM customer
  5.                       WHERE customer.iduser in (72)  AND Customer.datecr BETWEEN  '23.06.2011' AND '23.06.2012'
  6.                       GROUP BY iduser ) AS company_stat ON Users.iduser = company_stat.iduser
  7.           LEFT JOIN ( SELECT idcreator, SUM(idhisttype=0) zametka, SUM( idhisttype=47 OR idhisttype=57) otkaz, SUM( idhisttype=45 OR idhisttype=54) zvonok
  8.                       FROM History
  9.                       WHERE History.idcreator in (72) AND History.datecr BETWEEN '23.06.2011' AND '23.06.2012'
  10.                       GROUP BY idcreator ) AS comment_stat ON Users.iduser = comment_stat.idcreator
  11.           WHERE users.iduser IN (72)
  12.      
  13. Invalid token.
  14. Dynamic SQL Error.
  15. SQL error code = -104.
  16. Token unknown - line 3, char 22.
  17. SELECT.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top