Greetings SQL people of all nations.
Simple question, hopefully a simple answer.
I have an Oracle database table with persons' information. Columns are:
FirstName, LastName, BirthDate, BirthCountry
Let's say in this table I have 1500 persons born in Aruba (BirthCountry = "Aruba"), 678 Botswanans (BirthCountry = "Botswana"), 13338 Canadians (BirthCountry = "Canadia").
What query would I need to write extract a sample batch of 10 records from each country? It doesn't matter which 10, just as long as there are 10.
This one query would output 30 rows, 10 rows from each BirthCountry.