Ciao a tutti, ho due tabelle con campi in comune "campo1" e "campo2":
id_1 - campo1
106 - NA
105 - CT
104 - RM
103 - FI
102 - MI
101 - CA
100 - PZ
id_2 - campo2
0 - FI
0 - CA
0 - NA
0 - PZ
0 - RM
0 - CT
0 - MI
Esiste una query che mi permette di associare correttamente gli id_1 con id_2 con l'uso di UPDATE e JOIN?
Ad esempio la seconda tabella dovrebbe completarsi cosi:
103 - FI
101 - CA
106 - NA
100 - PZ
104 - RM
105 - CT
102 - MI
Ovviamente non � una questione di "ordine".
Grazie

Rispondi quotando