sql 语句检索
怎么对记录进行排序   
 以加盟金额> 0的会员排在金额=0的前面 
 然后加盟金额> 0的会员按加盟时间的先后排序(从先到后)     
 1:加盟金额   500,加盟时间   4-5 
 2:加盟金额   1000,加盟时间   4-6 
 3:加盟金额   0,加盟时间   4-2        
 排序结果:1,2,3
------解决方案--------------------select * from table1 order by case when 加盟金额> 0 then 1 else 0 end desc,加盟时间
------解决方案--------------------order by (case when 加盟金额> 0 then 0 else 1 end),加盟时间