IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
              WHERE SYSCOLUMNS.NAME = 'KDVTUTAR' AND SYSOBJECTS.name = 'FATISL')
ALTER TABLE FATISL ADD KDVTUTAR float
GO

IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
              WHERE SYSCOLUMNS.NAME = 'DKDVTUTAR' AND SYSOBJECTS.name = 'FATISL')
ALTER TABLE FATISL ADD DKDVTUTAR float
GO

IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
              WHERE SYSCOLUMNS.NAME = 'TEVKIFATTUTARI' AND SYSOBJECTS.name = 'FATISL')
ALTER TABLE FATISL ADD TEVKIFATTUTARI float
GO

IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
              WHERE SYSCOLUMNS.NAME = 'DTEVKIFATTUTAR' AND SYSOBJECTS.name = 'FATISL')
ALTER TABLE FATISL ADD DTEVKIFATTUTAR float
GO

IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
              WHERE SYSCOLUMNS.NAME = 'DSATIRINDT' AND SYSOBJECTS.name = 'FATISL')
ALTER TABLE FATISL ADD DSATIRINDT float
GO

IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
              WHERE SYSCOLUMNS.NAME = 'INDTOPLAM' AND SYSOBJECTS.name = 'FATISL')
ALTER TABLE FATISL ADD INDTOPLAM float
GO

IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
              WHERE SYSCOLUMNS.NAME = 'DINTTOPLAM' AND SYSOBJECTS.name = 'FATISL')
ALTER TABLE FATISL ADD DINTTOPLAM float
GO


