SELECT card_type, name, receipt_amount, classif, modificator FROM disc_std2perscard WHERE card_code = '365001734' and type = 0 OR card_code between substring('365001734',1,1) and '365001734' and instr('365001734', card_code)=1 and type = 1 order by type, card_code desc;