
create table if not exists p10_sa.S98_S_crm_account (
	 accountnumber  TEXT 
	, name  TEXT 
	, tek_channelidname  TEXT 
	, address1_city  TEXT 
	, tek_address1_stateidname  TEXT 
	, tek_address1_countryidname  TEXT 
	, address1_line1  TEXT 
	, address1_postalcode  TEXT 
	, tek_accountterritoryidname  TEXT 
	, statecodename  TEXT 
	, tek_omarcustomercode  TEXT 
	, tek_erpsitenumber  TEXT 
	, tek_newcountofactivecontacts  TEXT 
	, tek_countofcases  TEXT 
	, tek_countofleads  TEXT 
	, tek_countofopportunities  TEXT 
	, tek_countofnamedaccount  TEXT 
	, createdbyname  TEXT 
	, createdon  TEXT 
	, tek_3yearvalue  TEXT 
	, tek_3yrordertotal  TEXT 
	, customertypecodename  TEXT 
	, adx_activeopportunitycount  TEXT 
	, donotbulkemail  TEXT 
	, donotbulkpostalmail  TEXT 
	, donotemail  TEXT 
	, donotfax  TEXT 
	, donotpostalmail  TEXT 
	, donotphone  TEXT 
	, ftv_dqphoneclean  TEXT 
	, tek_op_duplicatestatusname  TEXT 
	, tek_plussetupcompletedname  TEXT 
	, tek_customeridname  TEXT 
	, tek_industryidname  TEXT 
	, tek_mkto_channel  TEXT 
	, tek_mkto_region  TEXT 
	, modifiedbyname  TEXT 
	, modifiedon  TEXT 
	, owneridname  TEXT 
	, parentaccountidname  TEXT 
	, etl_tx_dt  TIMESTAMP 
) ; 

 COMMENT ON COLUMN p10_sa.S98_S_crm_account.accountnumber IS 'accountnumber'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.name IS 'name'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_channelidname IS 'tek_channelidname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.address1_city IS 'address1_city'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_address1_stateidname IS 'tek_address1_stateidname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_address1_countryidname IS 'tek_address1_countryidname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.address1_line1 IS 'address1_line1'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.address1_postalcode IS 'address1_postalcode'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_accountterritoryidname IS 'tek_accountterritoryidname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.statecodename IS 'statecodename'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_omarcustomercode IS 'tek_omarcustomercode'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_erpsitenumber IS 'tek_erpsitenumber'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_newcountofactivecontacts IS 'tek_newcountofactivecontacts'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_countofcases IS 'tek_countofcases'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_countofleads IS 'tek_countofleads'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_countofopportunities IS 'tek_countofopportunities'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_countofnamedaccount IS 'tek_countofnamedaccount'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.createdbyname IS 'createdbyname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.createdon IS 'createdon'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_3yearvalue IS 'tek_3yearvalue'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_3yrordertotal IS 'tek_3yrordertotal'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.customertypecodename IS 'customertypecodename'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.adx_activeopportunitycount IS 'adx_activeopportunitycount'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.donotbulkemail IS 'donotbulkemail'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.donotbulkpostalmail IS 'donotbulkpostalmail'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.donotemail IS 'donotemail'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.donotfax IS 'donotfax'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.donotpostalmail IS 'donotpostalmail'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.donotphone IS 'donotphone'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.ftv_dqphoneclean IS 'ftv_dqphoneclean'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_op_duplicatestatusname IS 'tek_op_duplicatestatusname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_plussetupcompletedname IS 'tek_plussetupcompletedname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_customeridname IS 'tek_customeridname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_industryidname IS 'tek_industryidname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_mkto_channel IS 'tek_mkto_channel'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.tek_mkto_region IS 'tek_mkto_region'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.modifiedbyname IS 'modifiedbyname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.modifiedon IS 'modifiedon'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.owneridname IS 'owneridname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.parentaccountidname IS 'parentaccountidname'; 
 COMMENT ON COLUMN p10_sa.S98_S_crm_account.etl_tx_dt IS ''; 

COMMENT ON TABLE p10_sa.S98_S_crm_account IS '';



create table if not exists p12_sfull.S98_S_crm_account (
	 accountnumber  TEXT 
	, name  TEXT 
	, tek_channelidname  TEXT 
	, address1_city  TEXT 
	, tek_address1_stateidname  TEXT 
	, tek_address1_countryidname  TEXT 
	, address1_line1  TEXT 
	, address1_postalcode  TEXT 
	, tek_accountterritoryidname  TEXT 
	, statecodename  TEXT 
	, tek_omarcustomercode  TEXT 
	, tek_erpsitenumber  TEXT 
	, tek_newcountofactivecontacts  TEXT 
	, tek_countofcases  TEXT 
	, tek_countofleads  TEXT 
	, tek_countofopportunities  TEXT 
	, tek_countofnamedaccount  TEXT 
	, createdbyname  TEXT 
	, createdon  TEXT 
	, tek_3yearvalue  TEXT 
	, tek_3yrordertotal  TEXT 
	, customertypecodename  TEXT 
	, adx_activeopportunitycount  TEXT 
	, donotbulkemail  TEXT 
	, donotbulkpostalmail  TEXT 
	, donotemail  TEXT 
	, donotfax  TEXT 
	, donotpostalmail  TEXT 
	, donotphone  TEXT 
	, ftv_dqphoneclean  TEXT 
	, tek_op_duplicatestatusname  TEXT 
	, tek_plussetupcompletedname  TEXT 
	, tek_customeridname  TEXT 
	, tek_industryidname  TEXT 
	, tek_mkto_channel  TEXT 
	, tek_mkto_region  TEXT 
	, modifiedbyname  TEXT 
	, modifiedon  TEXT 
	, owneridname  TEXT 
	, parentaccountidname  TEXT 
	, etl_tx_dt  TIMESTAMP 
) ; 

 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.accountnumber IS 'accountnumber'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.name IS 'name'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_channelidname IS 'tek_channelidname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.address1_city IS 'address1_city'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_address1_stateidname IS 'tek_address1_stateidname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_address1_countryidname IS 'tek_address1_countryidname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.address1_line1 IS 'address1_line1'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.address1_postalcode IS 'address1_postalcode'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_accountterritoryidname IS 'tek_accountterritoryidname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.statecodename IS 'statecodename'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_omarcustomercode IS 'tek_omarcustomercode'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_erpsitenumber IS 'tek_erpsitenumber'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_newcountofactivecontacts IS 'tek_newcountofactivecontacts'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_countofcases IS 'tek_countofcases'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_countofleads IS 'tek_countofleads'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_countofopportunities IS 'tek_countofopportunities'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_countofnamedaccount IS 'tek_countofnamedaccount'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.createdbyname IS 'createdbyname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.createdon IS 'createdon'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_3yearvalue IS 'tek_3yearvalue'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_3yrordertotal IS 'tek_3yrordertotal'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.customertypecodename IS 'customertypecodename'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.adx_activeopportunitycount IS 'adx_activeopportunitycount'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.donotbulkemail IS 'donotbulkemail'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.donotbulkpostalmail IS 'donotbulkpostalmail'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.donotemail IS 'donotemail'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.donotfax IS 'donotfax'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.donotpostalmail IS 'donotpostalmail'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.donotphone IS 'donotphone'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.ftv_dqphoneclean IS 'ftv_dqphoneclean'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_op_duplicatestatusname IS 'tek_op_duplicatestatusname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_plussetupcompletedname IS 'tek_plussetupcompletedname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_customeridname IS 'tek_customeridname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_industryidname IS 'tek_industryidname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_mkto_channel IS 'tek_mkto_channel'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.tek_mkto_region IS 'tek_mkto_region'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.modifiedbyname IS 'modifiedbyname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.modifiedon IS 'modifiedon'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.owneridname IS 'owneridname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.parentaccountidname IS 'parentaccountidname'; 
 COMMENT ON COLUMN p12_sfull.S98_S_crm_account.etl_tx_dt IS ''; 

COMMENT ON TABLE p12_sfull.S98_S_crm_account IS '';

