Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT t1.`type`, count(t1.`type`) as c FROM (SELECT * FROM business WHERE site=? AND scrape_date=?) t1 LEFT JOIN (SELECT * FROM business WHERE site=? AND scrape_date=?) t2 ON t1.urlmd5=t2.urlmd5 WHERE t2.id IS NULL GROUP BY type;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement