by category

pre: mysql key column
next: eigen repmat