fa' un esempio dei dati che hai nel db e della tabella che vuoi ottenere (un bel disegnino)