select testcode,testvalue,procode,provalue,testresult from (select test.PARAM_NAME testcode, test.result testresult, test.PARAM_VALUE testvalue,pro.param_name procode,pro.param_value provalue
from `xixi`.`t_common_global_param` test, `xixi_backup`.`t_common_global_param` pro
where test.PARAM_NAME= pro.PARAM_NAME) haha
where testvalue in (select provalue from (select test.PARAM_NAME testcode, test.PARAM_VALUE testvalue,pro.param_name procode,pro.param_value provalue
from `xixi`.`t_common_global_param` test, `xixi_backup`.`t_common_global_param` pro
where test.PARAM_NAME= pro.PARAM_NAME) haha where provalue is not null)
from `xixi`.`t_common_global_param` test, `xixi_backup`.`t_common_global_param` pro
where test.PARAM_NAME= pro.PARAM_NAME) haha
where testvalue in (select provalue from (select test.PARAM_NAME testcode, test.PARAM_VALUE testvalue,pro.param_name procode,pro.param_value provalue
from `xixi`.`t_common_global_param` test, `xixi_backup`.`t_common_global_param` pro
where test.PARAM_NAME= pro.PARAM_NAME) haha where provalue is not null)