IF (not EXISTS(Select * from systable where LCase(table_name) = LCase('VATRates'))) THEN Create Table VATRates ( "ID" Integer NOT NULL DEFAULT AUTOINCREMENT, "VATCode" Char NULL, "Rate" Numeric(8,2) NOT NULL DEFAULT 0, "Description" Varchar(255) NULL, "DDSType" Integer DEFAULT -1, PRIMARY KEY("ID") ); Comment on Column VATRates.DDSType is "Съответства на стойността на DDSType от Invoices"; Insert Into VATRates(VATCode, Rate, DDSType) Values('А', 0, -1); Insert Into VATRates(VATCode, Rate, DDSType) Values('Б', 0.2, 1); Insert Into VATRates(VATCode, Rate, DDSType) Values('В', 0.0, -1); Insert Into VATRates(VATCode, Rate, DDSType) Values('Г', 0.07, 2); END IF