Guest User

Untitled

a guest
Aug 14th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. SELECT tableA.*, COUNT(tableB.id) FROM tableA
  2. LEFT JOIN tableB on tableB.foreignKey = tableA.uid
  3. GROUP BY tableB.foreignKey
Add Comment
Please, Sign In to add comment