
IF NOT EXISTS(
  SELECT TOP 1 1
  FROM INFORMATION_SCHEMA.COLUMNS
  WHERE 
    [TABLE_NAME] = '"EmpMonthConsultantSalary"'
    AND [COLUMN_NAME] = 'MainDivision')
BEGIN
  ALTER TABLE "EmpMonthConsultantSalary"
    ADD MainDivision numeric(18,0)
END

IF NOT EXISTS(
  SELECT TOP 1 1
  FROM INFORMATION_SCHEMA.COLUMNS
  WHERE 
    [TABLE_NAME] = '"EmpMonthConsultantSalary"'
    AND [COLUMN_NAME] = 'SubDivision')
BEGIN
  ALTER TABLE "EmpMonthConsultantSalary"
    ADD SubDivision numeric(18,0)
END