- Home
- Categorie
- Coding e Sistemistica
- Coding
- Sommare due tabelle count
-
Sommare due tabelle count
Salve a tutti,
ho due tabelle mysql, e dovrei sommare il totale di ciascuna tabella in un unica tabella, in pratica in access, questa query funziona:conn.execute ("Select sum(tot) as recTot from (SELECT count(*) as tot from persone UNION select count(*) as tot from eventi)")mentre con mysql, mi restituisce questo errore:
Every derived table must have its own aliascome dovrei fare?
Grazie, ciao.