select res_id,res_name,r_index_id,default_r_i_id,flag from(select top 11 res_id,res_name,r_index_id,default_r_i_id,0 as flag from T_D_Resource where res_is_audit=1 and channel_id=5 and res_relation_keywords='点心桌面' order by newid() desc )a union select res_id,res_name,r_index_id,default_r_i_id,1 as flag from T_D_Resource where res_id=47817 order by flag desc