codice:
select tabella1.* from tabella1
inner join tabella2 
on tabella1.id = tabella2.id