IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
               WHERE SYSCOLUMNS.NAME = 'HIKRMMDLFARKTUTAR' AND SYSOBJECTS.name = 'HESAPISL')
ALTER TABLE dbo.HESAPISL ADD
	HIKRMMDLFARKTUTAR  AS ((case when [KRMINDORAN]>(0) then ([KRMTUTAR]*((100.00)-[KRMINDORAN]))/(100.00) else [KRMTUTAR]-[KRMINDTUTAR] end)- [MDLKRMTUTAR])
GO