Ciao,
devo aggiornare le ore nella tabella "destination" sommandole a quelle importate dalla tabella "source" cosi:
nella "source" lo stesso CodeID è compare piu volte ma anziche sommarle tutte in "destination" le somma solo una volta; cosi:codice:Update destination Inner Join source destination.UserID = source.CodeID set destination.ore = destination.ore + source.Ore
Tbl_Source
CodeID - ore
15 - 4
15 - 8
20 - 7
20 - 3
Tbl_Destination
UserID - ore
15 - 4 (anziche 12)
20 - 7 (anziche 10)
any help ?
Grazie