SELECT id_card, id_card_type, c.id_card_company, cc.name, value
                      FROM bell.card c
                     inner join bell.card_company cc using(id_card_company)
                     where cc.active='y'
                       and (active_nn>reserve_nn or id_card_type>2)
                       and value>4
                      order by cc.name, value
                     
01234
149343Bizon5.00
150343Bizon10.00
151343Bizon20.00
152343Bizon50.00
153343Bizon100.00
173343Bizon250.00
115330Mozart5.00
104330Mozart10.00
105330Mozart20.00
106330Mozart50.00
107330Mozart100.00
108330Mozart250.00