i have a problem designing a SQLite query, i have two tabels, the first is:
first: id, name
and the second
second: id, first_id, name
now i have entries in first and the entries of second always have a id from first in the first_id field. now i want to get all the names from the first table PLUS the count of entries with the first_id same as the if in the first table.
how to realize such a query?
1 Answer