INSERT INTO EXE_DATA_01.LOOKUPS
SELECT NULL,ID,NULL,CNAME,1,LABEL,POSITION,NULL FROM EVYDA.LOOKUPS WHERE CNAME="typ_parovani";

INSERT INTO EXE_DATA_01.LOOKUPS
SELECT NULL,ID,NULL,'titul',1,NAZEV,NULL,NULL FROM EVYDA.SUBJEKTY_TITULY WHERE AKTIVNI=1;

DELETE FROM LOOKUPS WHERE CNAME="titul";

SELECT * FROM LOOKUPS WHERE CNAME="titul" ORDER BY LABEL;
