IF (SELECT COUNT(*) FROM TMDL3ISTISNAIDURUM WHERE MDL3ISTISNAIDURUMID=10)=0
BEGIN
UPDATE TMDL3ISTISNAIDURUM SET MDL3ISTISNAIDURUMKODU='1' WHERE MDL3ISTISNAIDURUMID=1
UPDATE TMDL3ISTISNAIDURUM SET ISTISNAIDURUM='İş kazası',MDL3ISTISNAIDURUMKODU='I' WHERE MDL3ISTISNAIDURUMID=2
UPDATE TMDL3ISTISNAIDURUM SET MDL3ISTISNAIDURUMKODU='3' WHERE MDL3ISTISNAIDURUMID=3
UPDATE TMDL3ISTISNAIDURUM SET MDL3ISTISNAIDURUMKODU='4' WHERE MDL3ISTISNAIDURUMID=4
UPDATE TMDL3ISTISNAIDURUM SET MDL3ISTISNAIDURUMKODU='5' WHERE MDL3ISTISNAIDURUMID=5
UPDATE TMDL3ISTISNAIDURUM SET MDL3ISTISNAIDURUMKODU='6' WHERE MDL3ISTISNAIDURUMID=6
UPDATE TMDL3ISTISNAIDURUM SET MDL3ISTISNAIDURUMKODU='7' WHERE MDL3ISTISNAIDURUMID=7
UPDATE TMDL3ISTISNAIDURUM SET MDL3ISTISNAIDURUMKODU='8' WHERE MDL3ISTISNAIDURUMID=8
INSERT INTO TMDL3ISTISNAIDURUM (MDL3ISTISNAIDURUMID,ISTISNAIDURUM,MDL3ISTISNAIDURUMKODU) VALUES(9,'Meslek hastalığı','M')
INSERT INTO TMDL3ISTISNAIDURUM (MDL3ISTISNAIDURUMID,ISTISNAIDURUM,MDL3ISTISNAIDURUMKODU) VALUES(10,'Madde Bağımlılığı','B')
END
