Facebook
From Wet Meerkat, 3 Years ago, written in Plain Text.
This paste is a reply to Untitled from Rauan - view diff
Embed
Download Paste or View Raw
Hits: 194
  1. SELECT count(*) FROM `CALL` c
  2. WHERE EXISTS
  3.           (SELECT *
  4.           FROM contact as tp
  5.            WHERE c.id=tp.id --and c.current > tp.start and c.current < tp.end
  6.            and c.current between tp.start and c.current
  7.            and contact.id < 4000);