Facebook
From Wet Meerkat, 3 Years ago, written in Plain Text.
This paste is a reply to Untitled from Rauan - go back
Embed
Viewing differences between Untitled and Re: Untitled
SELECT count(*) FROM `CALL` c
WHERE EXISTS
          (SELECT *
          FROM (SELECT * FROM contact WHERE contact.id < 4000) as tp
           WHERE c.id=tp.id and --and c.current > tp.start and c.current < tp.end);end
           and c.current between tp.start and c.current
           and contact.id < 4000);