allora devi per forza fare una SP, usando una tabella temporanea a cui aggiungerai tante colonne quante sono le società esterne, e poi vai di insert