Answer the question
In order to leave comments, you need to log in
To learn kol-in records in the connected table?
There are two tables
Table_1
id | title
------------
1 | One
2 | Two
3 | Three
Table_2
table_1_id | user_id
------------------------
1 | 1
1 | 2
2 | 1
When selecting from the first table, I want to see
id | title | count
-----------------
1 | One | 2
2 | Two | 1
3 | Three | 0
How to make a query to get the specified result?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question