a guest Aug 20th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. select count(*)
  2.        from child
  3. tablesample bernoulli(5) -- If you're only after an estimate, TABLESAMPLE is your friend.
  4.   left join parent on (child.parent_id =
  5.       where is null
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