||name||village|| ----------------- ||A||v1|| ||B||x1|| ||A||v2|| ||C||a1|| ||D||b1|| ||E||c1|| ||F||d1|| ||A||v3|| i want to make sql query which returns me the first 3 rows which different, and group all the villages A v1 A v2 A v3 B x1 C a1