Grazie Ciro.
In the web, perché dici che non dovrei farlo in sql?