I'm using postgresql and I have two columns Country and Name. I want to get x numbers of people's name for each country.
so forexample if I had a data like this
Name Country
"John" "US"
"Kim" "KR"
"Mike" "US"
"Park" "KR"
"Kim" "US"
"Doe" "RU"
"Pou" "KR"
"John" "RU"
"Sam" "RU"
... ...
... ...
and say I want to get 2 ppl name for each country
Name Country
"John" "US"
"Mike" "US"
"Park" "KR"
"Pou" "KR"
"Sam" "RU"
"Doe" "RU"
is there a way to do this kind of stuff?