select * from tbgoods where (goodsname like '%大米%' or goodsname like '%淀粉%') and saleprice in(select saleprice from tbgoods where goodsname like '%大米%' and saleprice in(select saleprice from tbgoods where goodsname like '%淀粉%')) order by saleprice,goodsname