select a.id,a.id_utente,a.id_data,a.statoiscrizione,a.data_iscrizione,b.riferimento,b.descrizione,c.data,c.id_mese from tbcorsiiscrizioni as a left outer join tbcorsi as b on a.id_corso=b.id_corso left outer join tbdatecorsi as c on a.id_data=c.id_data where data_iscrizione='06/06/2016' order by a.id_data desc select * from TbUtenti_Mail_Spedite where inviata=null order by id desc select * from TbUtenti_Mail_Spedite where data='20160606' order by id desc