Skip to content

Instantly share code, notes, and snippets.

@sriannamalai
Created September 18, 2013 10:24
Show Gist options
  • Save sriannamalai/6607243 to your computer and use it in GitHub Desktop.
Save sriannamalai/6607243 to your computer and use it in GitHub Desktop.
Code to update two Tables based on their Hashes
SELECT a.user_id, a.user_site, b.user_id, b.user_site
FROM table1 a, table2 b
WHERE a.user_id = b.user_id AND a.hashes = b.hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment