Last active
August 29, 2015 14:06
-
-
Save mrjman/22a27208b89b2ef2bc7e to your computer and use it in GitHub Desktop.
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 motor_symptoms.description, profiles_motor_symptoms.id FROM motor_symptoms LEFT OUTER JOIN profiles_motor_symptoms ON motor_symptoms.id=profiles_motor_symptoms.motor_symptom_id WHERE profiles_motor_symptoms.profile_id=11; | |
| SELECT description, profiles_motor_symptoms.id FROM motor_symptoms LEFT OUTER JOIN profiles_motor_symptoms ON profiles_motor_symptoms.motor_symptom_id=motor_symptoms.id; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SELECT description, p.id from motor_symptoms as m LEFT JOIN profiles_motor_symptoms as p on m.id=p.motor_symptom_id;