print transactions with thesame ISBN and group their result