Skip to content
Advertisement

SQL Query : Column1 – Stores_id, Column2 – Repo_id. How to select stores with more than 1 repo?

I would like to select only stores_id with more than one repo_id. In the case below, I would like as a result: Stores 1 and 4, as they have 2 repos_id related to them.

Example Table

Advertisement

Answer

If I understand you Question correct here would be a small example with having:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement