Created
November 20, 2012 13:09
-
-
Save ychaouche/4117861 to your computer and use it in GitHub Desktop.
transform a where to a join
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT contacts.first_name, contacts.last_name, email_addresses.email_address | |
| FROM | |
| contacts | |
| INNER JOIN email_addr_bean_rel | |
| ON contacts.id = email_addr_bean_rel.bean_id | |
| INNER JOIN email_addresses | |
| ON email_addresses.id = email_addr_bean_rel.email_address_id | |
| WHERE email_addresses.email_address = '[email protected]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment