insert into comp_opening_balance (companyID, accountID, year, createdBy) select 3, ID, 2015, 75	from comp_chart_of_acct where companyID = 3 and ID not in (select accountID from comp_opening_balance where year= 2015 and companyID = 3)