update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-2V';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-2W';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-2X';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-2Y';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-2Z';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-31';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-32';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-33';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-34';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-35';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-36';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-37';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-38';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-39';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3A';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3B';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3C';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3D';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3E';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3F';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3G';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3H';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3I';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3J';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3K';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3L';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3M';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3N';
update ka02_new set aka065=1,aka166=1 where aka060='X-P02CA-A010-A001-3O';
....
update ka02_new b
set b.aka065 =
(SELECT a.aka065 FROM a_2017 a WHERE a.aka060 = b.aka060),
b.aka166 =
(SELECT a.aka166 FROM a_2017 a WHERE a.aka060 = b.aka060)
WHERE b.aka060 in (SELECT a.aka060 FROM a_2017 a);