A tool for gluing rows of a table with some extra logics