Mysql
 sql >> Database >  >> RDS >> Mysql

Ottenere dati da più tabelle in una singola riga concatenando alcuni valori

Sostituisci LEFT JOIN con JOIN

Select pro_id, surname, firstname, group_concat(degree,school,year) as qual,concat(Title,year) as work 
from profile
join qualification on qualification.pro_id = profile.pro_id 
join projects on projects.pro_id = profile.pro_id group by pro_id

Qual ​​è la differenza tra "INNER JOIN" e " UNIONE ESTERNA"?