Skip to content

Instantly share code, notes, and snippets.

@edenc
Created January 23, 2013 17:23
Show Gist options
  • Select an option

  • Save edenc/4610499 to your computer and use it in GitHub Desktop.

Select an option

Save edenc/4610499 to your computer and use it in GitHub Desktop.
LEFT JOIN %(partition) part ON
part.cust_num = oa.cust_num AND
part.cont_num = oa.cont_num AND
part.date = %(date)
WHERE
part.cust_num IS NULL
GROUP BY
oa.cust_num,
oa.cont_num
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment