Salve a tutti, ho questa query sql che mi dovrebbe sommare due tabelle:
ma mi restituisce questo errore:codice:conn.execute ("Select sum(tot) as recTot from (SELECT count(*) as tot from persone UNION select count(*) as tot from eventi)")
Dove sbaglio?codice:Every derived table must have its own alias
Grazie, ciao.