Torna al Thread
select prodotti.codice, max (prodottiprezzi.datainizio) as data, codiceprodotto, nodoprezzo,ragionesociale, prezzo
from prodottiprezzi,prodotti,fornitori
where prodotti.codice=codiceprodotto
and fornitorecodice=fornitori.codice
and prodotti.codice=prodottiprezzi.codiceprodotto
and TipoPrezzo like 'P'
and nodoprezzo like '004'
--and prodotti.codice like '00001666'
and ragionesociale like '%PIppo%'
order by prodotti.codice;