-- DBMS: snowflake
create or replace TABLE TCGA_CLINICAL_REL9 (
	"case_gdc_id" VARCHAR(16777216),
	"case_barcode" VARCHAR(16777216),
	"program_name" VARCHAR(16777216),
	"disease_code" VARCHAR(16777216),
	"project_short_name" VARCHAR(16777216),
	"age_at_diagnosis" NUMBER(38,0),
	"age_began_smoking_in_years" VARCHAR(16777216),
	"anatomic_neoplasm_subdivision" VARCHAR(16777216),
	"batch_number" NUMBER(38,0),
	"bcr" VARCHAR(16777216),
	"bmi" FLOAT,
	"clinical_M" VARCHAR(16777216),
	"clinical_N" VARCHAR(16777216),
	"clinical_stage" VARCHAR(16777216),
	"clinical_T" VARCHAR(16777216),
	"colorectal_cancer" VARCHAR(16777216),
	"country" VARCHAR(16777216),
	"days_to_birth" NUMBER(38,0),
	"days_to_death" NUMBER(38,0),
	"days_to_initial_pathologic_diagnosis" NUMBER(38,0),
	"days_to_last_followup" NUMBER(38,0),
	"days_to_last_known_alive" NUMBER(38,0),
	"days_to_submitted_specimen_dx" VARCHAR(16777216),
	"ethnicity" VARCHAR(16777216),
	"gender" VARCHAR(16777216),
	"gleason_score_combined" VARCHAR(16777216),
	"h_pylori_infection" VARCHAR(16777216),
	"height" NUMBER(38,0),
	"histological_type" VARCHAR(16777216),
	"history_of_colon_polyps" VARCHAR(16777216),
	"history_of_neoadjuvant_treatment" VARCHAR(16777216),
	"hpv_calls" VARCHAR(16777216),
	"hpv_status" VARCHAR(16777216),
	"icd_10" VARCHAR(16777216),
	"icd_o_3_histology" VARCHAR(16777216),
	"icd_o_3_site" VARCHAR(16777216),
	"lymphatic_invasion" VARCHAR(16777216),
	"lymphnodes_examined" VARCHAR(16777216),
	"lymphovascular_invasion_present" VARCHAR(16777216),
	"menopause_status" VARCHAR(16777216),
	"mononucleotide_and_dinucleotide_marker_panel_analysis_status" VARCHAR(16777216),
	"neoplasm_histologic_grade" VARCHAR(16777216),
	"new_tumor_event_after_initial_treatment" BOOLEAN,
	"number_of_lymphnodes_examined" NUMBER(38,0),
	"number_of_lymphnodes_positive_by_he" VARCHAR(16777216),
	"number_pack_years_smoked" NUMBER(38,0),
	"other_dx" VARCHAR(16777216),
	"other_malignancy_anatomic_site" VARCHAR(16777216),
	"other_malignancy_histological_type" VARCHAR(16777216),
	"other_malignancy_type" VARCHAR(16777216),
	"pathologic_M" VARCHAR(16777216),
	"pathologic_N" VARCHAR(16777216),
	"pathologic_stage" VARCHAR(16777216),
	"pathologic_T" VARCHAR(16777216),
	"person_neoplasm_cancer_status" VARCHAR(16777216),
	"pregnancies" VARCHAR(16777216),
	"primary_neoplasm_melanoma_dx" VARCHAR(16777216),
	"primary_therapy_outcome_success" VARCHAR(16777216),
	"psa_value" VARCHAR(16777216),
	"race" VARCHAR(16777216),
	"residual_tumor" VARCHAR(16777216),
	"stopped_smoking_year" NUMBER(38,0),
	"tobacco_smoking_history" NUMBER(38,0),
	"tss_code" VARCHAR(16777216),
	"tumor_tissue_site" VARCHAR(16777216),
	"tumor_type" VARCHAR(16777216),
	"venous_invasion" VARCHAR(16777216),
	"vital_status" VARCHAR(16777216),
	"weight" NUMBER(38,0),
	"year_of_diagnosis" NUMBER(38,0),
	"year_of_tobacco_smoking_onset" NUMBER(38,0),
	"project_name" VARCHAR(16777216)
);

INSERT INTO "IDC"."IDC_V17"."TCGA_CLINICAL_REL9" (primary_neoplasm_melanoma_dx, batch_number, clinical_M, case_gdc_id, days_to_death, menopause_status, other_dx, weight, other_malignancy_anatomic_site, days_to_initial_pathologic_diagnosis, primary_therapy_outcome_success, other_malignancy_histological_type, pathologic_T, new_tumor_event_after_initial_treatment, clinical_T, days_to_last_followup, pathologic_N, icd_10, project_name, age_at_diagnosis, number_of_lymphnodes_examined, program_name, country, anatomic_neoplasm_subdivision, history_of_colon_polyps, mononucleotide_and_dinucleotide_marker_panel_analysis_status, lymphnodes_examined, icd_o_3_histology, number_of_lymphnodes_positive_by_he, days_to_submitted_specimen_dx, pathologic_stage, h_pylori_infection, other_malignancy_type, year_of_tobacco_smoking_onset, histological_type, pregnancies, ethnicity, race, year_of_diagnosis, residual_tumor, vital_status, tumor_type, days_to_last_known_alive, project_short_name, neoplasm_histologic_grade, history_of_neoadjuvant_treatment, clinical_N, gender, disease_code, tumor_tissue_site, icd_o_3_site, venous_invasion, gleason_score_combined, days_to_birth, height, bmi, stopped_smoking_year, hpv_calls, bcr, case_barcode, lymphatic_invasion, clinical_stage, psa_value, tss_code, colorectal_cancer, tobacco_smoking_history, lymphovascular_invasion_present, pathologic_M, age_began_smoking_in_years, hpv_status, number_pack_years_smoked, person_neoplasm_cancer_status) VALUES (NULL, NULL, NULL, '230edb1a-dd49-43be-9877-d2041c32fe77', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-OV', NULL, NULL, NULL, NULL, 'OV', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-72-4237', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, 'be64d20a-bcda-4623-912a-826e86f3225e', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Testicular Germ Cell Tumors', NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-TGCT', NULL, NULL, NULL, NULL, 'TGCT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-2G-AALF', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, 'a5d0c704-2888-4cff-805e-4bbe4636117c', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, 'LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z019', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, 'dde3c31f-51cb-4236-9aa9-0c9eda6105eb', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-OV', NULL, NULL, NULL, NULL, 'OV', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-01-0633', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-COAD', NULL, NULL, NULL, NULL, 'COAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-F4-6857', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);