come mai fai una tabella temporanea??
nn puoi usare una normale?