Created
July 5, 2012 11:56
-
-
Save JohnMurray/3053282 to your computer and use it in GitHub Desktop.
Link Multi-Where
This file contains 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 * | |
from ( | |
select * | |
from carModels as t1, | |
carMakes as t2 | |
where t1.somePKId = t2.someFKId | |
and ( | |
t1.Name like '%c%' | |
or t2.Name like '%c%' | |
) | |
limit 0, 25 | |
) | |
where t1.Name like '%honda%' | |
or t2.Name like '%honda%' | |
limit 0, 25; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment