select res_id,res_name,r_index_id,default_r_i_id,flag from(select top 8 res_id,res_name,r_index_id,default_r_i_id,0 as flag from T_D_Resource where res_is_audit=1 and res_run_flat='S60第五版' and channel_id=4 and default_r_c_id=162 order by newid() )a union select res_id,res_name,r_index_id,default_r_i_id,1 as flag from T_D_Resource where res_id=72569 order by flag desc