2015-07-01 75 views

回答

0
select a.* 
from 
    (select * from user_balance_table 
    where report_date < 20130901 
) a   
    left outer join 
    (select user_id 
    from user_balance_table 
    where report_date <20130801 
    group by user_id 
) b 
on a.user_id=b.user_id and b.user_id is null; 
相關問題