How to join these queries without union all
Urgent help me!
Tnx in advance
Code:
select f.mobid, f.merchant, f.price from ( select mobid, min(price) as minprice from tbl_merchant group by mobid ) as x inner join tbl_merchant as f on f.mobid = x.mobid and f.price = x.minprice order by mobid
Code:
select f.mobid, f.merchant, f.price from ( select mobid, max(price) as minprice from tbl_merchant group by mobid ) as x inner join tbl_merchant as f on f.mobid = x.mobid and f.price = x.minprice order by mobid
Tnx in advance
Comment