va quasi bene, non fosse per il fatto che in CONCAT se uno degli elementi è NULL mi restituisce una stringa vuota...