select convert(int,n_index) from index_m where n_index <>'0' **--- 2001,2002,2003** select A.* from processed_h A LEFT JOIN index_m B on A.c_type <> convert(int,B.n_index
我加入了不同的国家信息表,其中之一(cty)是国家名称的主表。所有表都有一个列c,链接到cty中的主键(也称为c)。为了加入他们,我首先用full join table1 using (c)这给了我cty中的所有国家,但我只想要其他表格中的国家为了解决这个问题,我试过full join table2 using (c