Created
January 8, 2011 20:52
-
-
Save develop7/771144 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 t1.id, count(t2.id) from table1 t1 inner join table2 t2 on t2.category=t1.id group by t1.id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment