try
SELECT mm.model_name, mm.manufacturer, SUM([net amount]) AS Total -- if you need apply discount etc..
FROM sales_info si
INNER JOIN mobile_master AS mm ON mm.imei = si.imei
GROUP BY mm.model_name, mm.manufacturer
ORDER BY Total DESC
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…