I wish to extract a sample from a table where each attribute from some field should be represented x times. For example see below where x is 1, and the fields I want to sample from are House, Priority and Injury.
Input:
ID Name House Priority Injury
1 Draco Slytherin Medium Head
2 Harry Gryffindor Low Hand
3 Ron Gryffindor Low Head
4 Cedric Hufflepuff High Chest
Output:
ID Name House Priority Injury
1 Draco Slytherin Medium Head
2 Harry Gryffindor Low Hand
4 Cedric Hufflepuff High Chest