-------------------------------------------------------------
1. inner join vs. right join (in this case, should give same results)
select j.pmid, j.authorlist, j.title, c.pubtype, c.tabdata
	from journalcits (as j) inner join curcits (as c) 
	on j.pmid = c.pmid 
	where j.authorlist like '*smith*' 
	order by j.pmid num

j.pmid j.authorlist j.title c.pubtype c.tabdata 
1347476 Richards-Smith_BA,_Elliott_RW. Mapping_of_the_mouse_ornithine_decarboxylase-related_sequence_family. Research Yes 
9008647 John_SW,_Hagaman_JR,_MacTaggart_TE,_Peng_L,_Smithes_O. Intraocular_pressure_in_inbred_mouse_strains. Research No 
10493779 Hawes_NL,_Smith_RS,_Chang_B,_Davisson_M,_Heckenlively_JR,_John_SW. Mouse_fundus_photography_and_angiography:_a_catalogue_of_normal_and_mutant_phenotypes. Research No 
10749765 Smith_BK,_Andrews_PK,_West_DB. Macronutrient_diet_selection_in_thirteen_mouse_strains. Research Yes 
11532192 Savinova_OV,_Sugiyama_F,_Martin_JE,_Tomarev_SI,_Paigen_BJ,_Smith_RS,_John_SW. Intraocular_pressure_in_genetically_distinct_mice:_an_update_and_strain_survey. Research Yes 
11591217 Savinova_OV,_Sugiyama_F,_Martin_JE,_Tomarev_SI,_Paigen_BJ,_Smith_RS,_John_SW. Intraocular_pressure_in_genetically_distinct_mice:_an_update_and_strain_survey:_Correction. Unknown Unknown 
11857778 Eppig_JT,_Blake_JA,_Burkart_DL,_Goldsmith_CW,_Lutz_CM,_Smith_CL. Corralling_conditional_mutations:_A_unified_resource_for_mouse_phenotypes. Commentary No 
select j.pmid, j.authorlist, j.title, c.pubtype, c.tabdata
	from journalcits (as j) right join curcits (as c) 
	on j.pmid = c.pmid 
	where j.authorlist like '*smith*' 
	order by j.pmid num

j.pmid j.authorlist j.title c.pubtype c.tabdata 
1347476 Richards-Smith_BA,_Elliott_RW. Mapping_of_the_mouse_ornithine_decarboxylase-related_sequence_family. Research Yes 
9008647 John_SW,_Hagaman_JR,_MacTaggart_TE,_Peng_L,_Smithes_O. Intraocular_pressure_in_inbred_mouse_strains. Research No 
10493779 Hawes_NL,_Smith_RS,_Chang_B,_Davisson_M,_Heckenlively_JR,_John_SW. Mouse_fundus_photography_and_angiography:_a_catalogue_of_normal_and_mutant_phenotypes. Research No 
10749765 Smith_BK,_Andrews_PK,_West_DB. Macronutrient_diet_selection_in_thirteen_mouse_strains. Research Yes 
11532192 Savinova_OV,_Sugiyama_F,_Martin_JE,_Tomarev_SI,_Paigen_BJ,_Smith_RS,_John_SW. Intraocular_pressure_in_genetically_distinct_mice:_an_update_and_strain_survey. Research Yes 
11591217 Savinova_OV,_Sugiyama_F,_Martin_JE,_Tomarev_SI,_Paigen_BJ,_Smith_RS,_John_SW. Intraocular_pressure_in_genetically_distinct_mice:_an_update_and_strain_survey:_Correction. Unknown Unknown 
11857778 Eppig_JT,_Blake_JA,_Burkart_DL,_Goldsmith_CW,_Lutz_CM,_Smith_CL. Corralling_conditional_mutations:_A_unified_resource_for_mouse_phenotypes. Commentary No 
-------------------------------------------------------------
2. outer join vs. left join (in this case, should give same results)
select j.pmid, j.authorlist, j.title, c.pubtype, c.tabdata
	from journalcits (as j) outer join curcits (as c) 
	on j.pmid = c.pmid 
	where j.authorlist like '*smith*' 
	order by j.pmid num

j.pmid j.authorlist j.title c.pubtype c.tabdata 
1347476 Richards-Smith_BA,_Elliott_RW. Mapping_of_the_mouse_ornithine_decarboxylase-related_sequence_family. Research Yes 
9008647 John_SW,_Hagaman_JR,_MacTaggart_TE,_Peng_L,_Smithes_O. Intraocular_pressure_in_inbred_mouse_strains. Research No 
10493779 Hawes_NL,_Smith_RS,_Chang_B,_Davisson_M,_Heckenlively_JR,_John_SW. Mouse_fundus_photography_and_angiography:_a_catalogue_of_normal_and_mutant_phenotypes. Research No 
10749765 Smith_BK,_Andrews_PK,_West_DB. Macronutrient_diet_selection_in_thirteen_mouse_strains. Research Yes 
11532192 Savinova_OV,_Sugiyama_F,_Martin_JE,_Tomarev_SI,_Paigen_BJ,_Smith_RS,_John_SW. Intraocular_pressure_in_genetically_distinct_mice:_an_update_and_strain_survey. Research Yes 
11591217 Savinova_OV,_Sugiyama_F,_Martin_JE,_Tomarev_SI,_Paigen_BJ,_Smith_RS,_John_SW. Intraocular_pressure_in_genetically_distinct_mice:_an_update_and_strain_survey:_Correction. Unknown Unknown 
11857778 Eppig_JT,_Blake_JA,_Burkart_DL,_Goldsmith_CW,_Lutz_CM,_Smith_CL. Corralling_conditional_mutations:_A_unified_resource_for_mouse_phenotypes. Commentary No 
99077909 Idris_AH,_Iizuka_K,_Smith_HRC,_Scalzo_AA,_Yokoyama_WM. Genetic_control_of_natural_killing_and_in_vivo_tumor_elimination_by_the_Chok_locus. null null 
99272693 Idris_AH,_Smith_HR,_Mason_LH,_Ortaldo_JR,_Scalzo_AA,_Yokoyama_WM. The_natural_killer_gene_complex_genetic_locus_Chok_encodes_Ly-49D,_a_target_recognition_receptor_that_activates_natural_killing. null null 
99348463 Ben-Smith_A,_Wahid_FN,_Lammas_DA,_Behnke_JM. The_relationship_between_circulating_and_intestinal_Heligmosomoides_polygyrus-specific_IgG1_and_IgA_and_resistance_to_primary_infection. null null 
select j.pmid, j.authorlist, j.title, c.pubtype, c.tabdata
	from journalcits (as j) left join curcits (as c) 
	on j.pmid = c.pmid 
	where j.authorlist like '*smith*' 
	order by j.pmid num

j.pmid j.authorlist j.title c.pubtype c.tabdata 
1347476 Richards-Smith_BA,_Elliott_RW. Mapping_of_the_mouse_ornithine_decarboxylase-related_sequence_family. Research Yes 
9008647 John_SW,_Hagaman_JR,_MacTaggart_TE,_Peng_L,_Smithes_O. Intraocular_pressure_in_inbred_mouse_strains. Research No 
10493779 Hawes_NL,_Smith_RS,_Chang_B,_Davisson_M,_Heckenlively_JR,_John_SW. Mouse_fundus_photography_and_angiography:_a_catalogue_of_normal_and_mutant_phenotypes. Research No 
10749765 Smith_BK,_Andrews_PK,_West_DB. Macronutrient_diet_selection_in_thirteen_mouse_strains. Research Yes 
11532192 Savinova_OV,_Sugiyama_F,_Martin_JE,_Tomarev_SI,_Paigen_BJ,_Smith_RS,_John_SW. Intraocular_pressure_in_genetically_distinct_mice:_an_update_and_strain_survey. Research Yes 
11591217 Savinova_OV,_Sugiyama_F,_Martin_JE,_Tomarev_SI,_Paigen_BJ,_Smith_RS,_John_SW. Intraocular_pressure_in_genetically_distinct_mice:_an_update_and_strain_survey:_Correction. Unknown Unknown 
11857778 Eppig_JT,_Blake_JA,_Burkart_DL,_Goldsmith_CW,_Lutz_CM,_Smith_CL. Corralling_conditional_mutations:_A_unified_resource_for_mouse_phenotypes. Commentary No 
99077909 Idris_AH,_Iizuka_K,_Smith_HRC,_Scalzo_AA,_Yokoyama_WM. Genetic_control_of_natural_killing_and_in_vivo_tumor_elimination_by_the_Chok_locus. null null 
99272693 Idris_AH,_Smith_HR,_Mason_LH,_Ortaldo_JR,_Scalzo_AA,_Yokoyama_WM. The_natural_killer_gene_complex_genetic_locus_Chok_encodes_Ly-49D,_a_target_recognition_receptor_that_activates_natural_killing. null null 
99348463 Ben-Smith_A,_Wahid_FN,_Lammas_DA,_Behnke_JM. The_relationship_between_circulating_and_intestinal_Heligmosomoides_polygyrus-specific_IgG1_and_IgA_and_resistance_to_primary_infection. null null 
