"Mettere tra tag" intendevo tag code o tag php. L'esempio sopra e' tra tag code. Come puoi vedere la leggibilita' aumenta notevolmente.Originariamente inviato da Emmanuele
codice:select * from (query1 left outer join tab1 on query1.id = tab1.id) left outer join query2 on query1.id = query2.id where (((query1.id)=[tab1].[id]) and ((query2.id)=[tab1].[id]) and ((tab1.stato_a)=[inserire lo stato: amm oppure namm] and (tab1.stato_a) in ("amm","namm")) and (((select max(data) as data2 from (select max(query1.data_fi) as data from query1 union select max(query2.uscita) as data from query2) as temptable)) <> false)) order by query1.numer, query2.numer;
Per il tuo problem mi spiace non poterti aiutare, ma evidentemente non si tratta di mysql, forse si tratta di ACCESS che purtroppo per me, e' un programma che non conosco.
![]()