Algo assim:-
SELECT city.id, city.name, city.slug, COUNT(club.id) AS club_count
FROM city
INNER JOIN club
ON city.id = club.city_id
WHERE club.published = 1
GROUP BY city.id, city.name, city.slug
HAVING club_count > 0
SELECT city.id, city.name, city.slug, COUNT(club.id) AS club_count
FROM city
INNER JOIN club
ON city.id = club.city_id
WHERE club.published = 1
GROUP BY city.id, city.name, city.slug
HAVING club_count > 0
Conectando-se ao banco de dados Oracle 12c do Pentaho Data Integration (Kettle) Community Edition
Flatten Table Pivot style para um Datagridview
Atualizar uma conta do Database Mail (SSMS)
Como criar atalhos personalizados no SQL Server Management Studio (SSMS) - Tutorial do SQL Server/TSQL Parte 10