Hi my table looks like this
Combination of Rows with same S id is termed as a family. Output should h