1
У меня есть следующие 2 заявления SQL:Объединение двух сложных инструкций SQL в один
Select count(project.id) as '# Projects', c2.name as ' Country name' from project, country c2, project_country where project_country.project_id = project.id and project_country.country_id= c2.id group by c2.name;
select count(user.id) as '# Consultants',c1.name as ' Country name' from user,consultant_profile, country c1 where c1.id= user.country_id and user.is_active=1 and user.type=0 and user.id = consultant_profile.user_id group by country.name ;
Можно ли объединить два запроса, основанные на country.id
поле так, у меня есть только один результат с #Projects, #Consultants и название страны?
спасибо @Mureinik, именно то, что мне было нужно. –