ACCESS里customer表里有一个cust_type属性,这个列填写为B,I,G三种数据

现在想将cust_type属性分类并且每类按照sales_detail表里sales_price属性-cost_price属性的值降序排列
这个SQL怎么写,我刚学ACCESS