Ciao, grazie del suggerimento.. ho provato il tuo sql ma mi da un errore:

Got error 122 from table handler