Use a CASE function to classify the bills, check it out in the fine Oracle® Database SQL Language Reference.