if not exists (select * from sys.systable tbl, sys.syscolumn clm where tbl.table_id = clm.table_id and 
               LCase(tbl.Table_Name) = LCase('Guests') and LCase(clm.Column_Name) = LCase('CategoryN')) then
  alter table Guests add CategoryN integer;
end if;