I want to delete a colum in a table using the following sql statement:
ALTER TABLE tblMarketing DROP COLUMN ThisYearMonthEn d10. In addition I only want to delete the column if it meets specific crietria. The crirtria is store in the table below. If the UdateMonth is not null then I want to delete.
FinancilaPeriod Month UdateMonth
ThisYearMonthEn d01 Jan
ThisYearMonthEn d02 Feb
ThisYearMonthEn d03 Mar
ThisYearMonthEn d04 Apr
ThisYearMonthEn d05 May
ThisYearMonthEn d06 Jun
ThisYearMonthEn d07 Jul
ThisYearMonthEn d08 Aug
ThisYearMonthEn d09 Sep
ThisYearMonthEn d10 Oct Oct
ThisYearMonthEn d11 Nov
ThisYearMonthEn d12 Dec
Can anyone help.
Thanks
ALTER TABLE tblMarketing DROP COLUMN ThisYearMonthEn d10. In addition I only want to delete the column if it meets specific crietria. The crirtria is store in the table below. If the UdateMonth is not null then I want to delete.
FinancilaPeriod Month UdateMonth
ThisYearMonthEn d01 Jan
ThisYearMonthEn d02 Feb
ThisYearMonthEn d03 Mar
ThisYearMonthEn d04 Apr
ThisYearMonthEn d05 May
ThisYearMonthEn d06 Jun
ThisYearMonthEn d07 Jul
ThisYearMonthEn d08 Aug
ThisYearMonthEn d09 Sep
ThisYearMonthEn d10 Oct Oct
ThisYearMonthEn d11 Nov
ThisYearMonthEn d12 Dec
Can anyone help.
Thanks
Comment