Ciao a tutti.
Ho questa query:

select a.cod_ente, a.des_dann, a.targa, b.dt_avv
from tab1 a, tab2 b
where b.cod_sin = a.cod_sin
and b.lg_avv = 'ROMA'
order by b.dt_avv asc

dove cod_sin è una chiave per tab1 e tab2

Voglio aggiungere i seguenti campi:

select a.cod_ente, a.des_dann, a.targa, b.dt_avv, b.lg_avv, c.indirizzo, c.dt_nasc, c.lg_nasc
from tab1 a, tab2 b, tab3 c

dove cod_ente è una chiave per tab1 e tab2

Ho provato con la subquery
select a.cod_ente
from sinistro b, danneggiato a
where b.lg_avv = 'ROMA'
and b.cod_sin = a.cod_sin
)